Implementation of "Remember me" functionality #5273
Unanswered
THE-SIMPLE-MARK
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.
-
Hey all, I don't often come to the discussion tab to ask for help, but I just can't find a solution to this.
I'm currently building a website with Next.js. It uses
next-auth
to manage anything authentication related. I recently added my Privacy policy & Cookie policy as well, and this is where I'm stuck. The next.js cookies that store the session data (to remember that the user is in a session on that computer) fall under the "Performance and Functionality Cookies" category in my Cookie Policy and therefore I need to ask for permission from the user to add the cookie after login. A "remember me" button would be perfect for this, but I can't find any easy ways to implement this. Setting themaxAge
wouldn't work as the cookie would still be added even though it would expire. I'm looking for a way to completely disable the setting of all cookies innext-auth
.How can I implement this feature?
Beta Was this translation helpful? Give feedback.
All reactions