NextAuth - User stays logged in after token is expired
Right, I understand that maybe I should write some sort of callback or something that prompts the user to log in again, or maybe to refresh the token.. but I don't understand why this happens.

3 Replies
The question is: where do I edit, or how can I make it so when the session is expired, it no longer returns the session?


I also set the maxAge for, like, a minute, but nothing changes
Update: I partially fixed it? I think I ran it yesterday with a maxAge of a few days and didn't notice, so I expected it to invalidate the session after I changed to a few seconds.
I'm still a little confused with this behavior, so if anyone with more experience on NextAuth can explain to me what's happening, I'd appreciate