-
-
Notifications
You must be signed in to change notification settings - Fork 21
Add configurable cookie domain property #22
Add configurable cookie domain property #22
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 @blumgart - looks good, almost there (:
src/module.ts
Outdated
@@ -44,6 +44,13 @@ declare interface SessionOptions { | |||
* @docs https://github.com/unjs/unstorage | |||
*/ | |||
storageOptions: CreateStorageOptions, | |||
/** | |||
* Set the cookie domain |
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.
Can you expand this a bit, eg, what does it mean if the domain for a cookie is set vs it being null?
Linking to a relevant part of MDN docs would also be useful here (:
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.
Hi, @BracketJohn. Thanks for response. Added a fix, my mistake)
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.
No worries, thanks for iterating here with me (:
Co-authored-by: Nils <nils.jonalik@rwth-aachen.de>
Merged, thanks @blumgart for the issue + the awesome contribution ❤️ Here's the release: https://github.com/sidebase/nuxt-session/releases/tag/0.2.3 |
Closes #19 .