how create Persistent sessions in next auth v4 and higher? #13341
Unanswered
SadeghShojayefard
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.
-
Hi I want create Persistent sessions in Next Auth.
I want when the user check remember me the session (maxAge) is set for 7 day.
but when the remember me not checked the session is expired after the browser is close.
how can dynamically manage this.
my project is next js 16/type script.
i write this code base on some solution in internet in session callback but is not working:
how can fix this? please help
Beta Was this translation helpful? Give feedback.
All reactions