Psifi-Solutions / csrf-csrf

A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.
Other
123 stars 19 forks source link

Refactor/parameter cleanup #59

Closed psibean closed 7 months ago

psibean commented 8 months ago

This simplifies the parameters for generateToken, preparing it for additional changes where the cookie configuration can be passed in on a per token basis.

This is a breaking change and won't be merged until other non-breaking changes go on first for a minor release.

It's also dependent on (and thus includes changes from): PR https://github.com/Psifi-Solutions/csrf-csrf/pull/58

psibean commented 8 months ago

README needs to be updated with the parameter changes