-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow configuration of same site attribute on auth_verification cookie #323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for raising this @BitPatty
lib/config.js
Outdated
@@ -45,6 +45,14 @@ const paramsSchema = Joi.object({ | |||
.maxArity(1) | |||
.optional() | |||
.default(() => defaultSessionIdGenerator), | |||
verificationCookie: Joi.object({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the transaction cookie isn't strictly part of the session, can we move this config up to the root.
Also, I'm going to need to think about if other properties need to be configurable.
Also, can we call it transactionCookie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed it. I kept it in object format to allow for more options, but/since I'm unsure if there's currently a use case for modifying the other cookie settings.
Thanks @BitPatty - will merge shortly |
Description
This is a breaking change.Allows to use a custom same site configuration for theauth_verification
cookie. I only included the override of the samesite but it could be extended later on.References
#322
Testing
Checklist
master