-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
default signed or not when keys present #82
Comments
Hi @dead-horse yes, both of those should behave the same (signed in this case), so them behaving different depending on the presence of the options is a bug. |
The docs would suggest the correct functionality is that the sig cookie should only be there for an explicit |
Fix this bug in the next major version, yep. |
I was just re-looking at this issue, and looked at the original implementation in b1322b6 and the discussion in #10 and it looks like the intended behavior is: honor the provided |
For now, I removed the fix on |
https://github.com/pillarjs/cookies/blob/master/lib/cookies.js#L74
https://github.com/pillarjs/cookies/blob/master/lib/cookies.js#L92
not sure if we should make them all be signed or not be signed, and both will break people's code.
The text was updated successfully, but these errors were encountered: