Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Add configurable cookie domain property #22

Merged

Conversation

blumgart
Copy link
Contributor

Closes #19 .

Copy link
Contributor

@BracketJohn BracketJohn left a 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
Copy link
Contributor

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 (:

Copy link
Contributor Author

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)

Copy link
Contributor

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 (:

src/module.ts Outdated Show resolved Hide resolved
Co-authored-by: Nils <nils.jonalik@rwth-aachen.de>
@BracketJohn BracketJohn merged commit 7abc24d into sidebase:main Nov 10, 2022
@BracketJohn
Copy link
Contributor

Merged, thanks @blumgart for the issue + the awesome contribution ❤️

Here's the release: https://github.com/sidebase/nuxt-session/releases/tag/0.2.3

@blumgart blumgart deleted the feat/allow-configurable-cookie-domain branch November 11, 2022 05:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configurable cookie domain property
2 participants