Logout a User after he/she close the browser #13178
Unanswered
HamedAlimoradi00
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.
-
Now I am using NextAuth 4.24.7. I want the user to log out after he/she close the browser. I have tried some solutions, like setting the maxAge and expires to "undefined" in the auth config cookies config. But I don't get the desired result.
Is there any solution that converts the "next-auth.session-token" to a session cookie that is deleted after the browser is closed?
Beta Was this translation helpful? Give feedback.
All reactions