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

[CookiesOptions] maxAge ignored in constructor #4

Closed
cedx opened this issue Aug 31, 2019 · 0 comments
Closed

[CookiesOptions] maxAge ignored in constructor #4

cedx opened this issue Aug 31, 2019 · 0 comments
Assignees

Comments

@cedx
Copy link
Owner

cedx commented Aug 31, 2019

Setting expires when instanciating a new CookieOptions object works as expected, but if I use maxAge instead, this is ignored.

// Good
new CookiesOptions({expires: new Date(Date.now() + 15000});

// Bad
new CookiesOptions({maxAge: 15});
@cedx cedx added the bug label Aug 31, 2019
@cedx cedx self-assigned this Aug 31, 2019
@cedx cedx closed this as completed in 80f0436 Aug 31, 2019
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

No branches or pull requests

1 participant