-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Create a new cookie with expires initialized with the MAX_DATE #2908
Create a new cookie with expires initialized with the MAX_DATE #2908
Conversation
@develohpanda
|
How does
Nope, a small patch fix for the original bug is fine. The date-time picker is more a feature request and I would do it separately. |
I've just noticed that I forgot 0 zeros to the number... it is 86400000000000
It seems to behave correctly, a cookie is generated with a date in a far far far future 😅 ( The issue in httpSnippet is kind of tricky. Edit: I've found the rules for date validation using ajv: https://tools.ietf.org/html/rfc3339#section-5.6. It expects 4 digits date 🤔 If you're ok with using the max value of |
Great investigation 👏
IMO the @DMarby would you have any further notes to add here around what value to use to represent the max date for cookie expiry? |
Sounds reasonable to use the |
As they say, that's a problem for future me 😂 |
We are using the MAX_DATE value from tough-cookie. https://github.com/salesforce/tough-cookie/blob/5ae97c6a28122f3fb309adcd8428274d9b2bd795/lib/cookie.js#L77
49c83b4
to
81861a4
Compare
Deploy preview for insomnia-storybook ready! Built with commit c5062ef |
We are using the MAX_DATE value from tough-cookie
Closes #2482