Skip to content
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

Support for multiple cookies with the same name from different domains #113

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zachasme
Copy link

@zachasme zachasme commented Sep 5, 2019

Resolves #88.

I've added a getAll() method instead of adding a multi option to get() such that the return type doesn't depend on input (which will also lead to saner typescript definitions).

The biggest question is how multiple signed cookies with same name should work when one signature is invalid. I went with removing the signature cookie if any of the signature cookies fail to match a key.

What do you think is the best approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for multiple cookies with the same name from different domains
2 participants