Are Session Cookies possible with next auth? #11808
Unanswered
paulschuetz
asked this question in
Help
Replies: 1 comment
-
you can use the callbacks function within the NextAuth configuration, specifically the
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
We have two different user roles: "GUEST" and "PROFILE".
For guest users we want the session to always expire after they closed the browser window. Thus we would like to set the next auch session token without an expiry (which makes it a session cookie) inside the users browser. However, for profile users we would like to have an expiry of 24 hours. Is it possible to set the session tokens
maxAge
dynamically per user/signIn?Beta Was this translation helpful? Give feedback.
All reactions