-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
The default cookie maxAge is 1000 years #441
Comments
Hi, i'm pretty sure this is expected. The maxAge should appear indefinite for good UX source |
It´s probably not expected as the |
This should not have been closed. Fixed in #765 |
Hi @hmnd, it's fine for the cookie max-age to be infinite because we use the cookie to store the session (access token) which is a JWT that contains an Setting the max-age of the cookie to a value that's less than the |
Bug report
Describe the bug
This line defines the default maxAge for the cookie
auth-helpers/packages/shared/src/supabase-server.ts
Line 28 in 1c07049
The maxAge unit is second (not milliseconds), so that's 1000 years 😱. I think this is a bug, expect one year?
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: