JWT session token expiration changing #12246
Unanswered
whispernight
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have successfully setup authjs with my Google Provider.


Everything works fine, except for the session maxAge.
I want the session to not last longer than 10 minutes.
For testing purposes I set it to 1 minute.
I restart the server to make sure changes take place (just in case)
When I freshly load a page (root/landing) I can see in the client the authjs token with an expiration of 1 minute in the future:
But as soon as I navigate to another page by clicking around, the session expiration now jumps 1 month! (default expiration value)
Not really sure what is going on but its extremely confusing
Here is my auth.ts in case that helps:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions