Skip to content

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