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

Added expiration options #49

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

Added expiration options #49

wants to merge 2 commits into from

Conversation

cedriking
Copy link

Based on this open issue: #17 There is no expiration options, I confirmed this by doing a quick search on the source and nothing.

This PR is to allow an extra argument which is options, and options allow an object which has two keys:

{
expires: 0, // Default = 0, expires is in minutes or a datetime (ex: 1599746306737)
isExpiresDate: false // Default = false, if `expires` is a datetime, set this option to true.
}

If expires is set to the default 0, expires won't be set and the previous expiration dates will be respected for cookie-store.

@shorouq-z
Copy link

Any plans on merging this soon?

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

Successfully merging this pull request may close these issues.

None yet

2 participants