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

fix(nuxt): session cookie max age #1576

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix(nuxt): session cookie max age #1576

wants to merge 1 commit into from

Conversation

jcap97
Copy link

@jcap97 jcap97 commented Oct 3, 2024

The session cookie maxAge being sent to the browser is equal to 432,000,000 seconds = 5,000 days

Root cause: The maxAge in setCookie() method from 'h3' has unit of seconds. Meanwhile, the expiresIn in firebase admin.createSessionCookie() has a unit of milliseconds.

The maxAge being set to cookie browser is equal to 432,000,000 seconds = 5,000 days

Root cause: The maxAge in setCookie() method from 'h3' has unit of seconds. Meanwhile, the expiresIn in firebase admin.createSessionCookie() has a unit of milliseconds.
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.

1 participant