Next.js Discord

Discord Forum

Next-auth invalidate sessions (CredentialsProvider)

Unanswered
Black-tailed Gnatcatcher posted this in #help-forum
Open in Discord
Black-tailed GnatcatcherOP
I use the CredentialsProvider with next-auth (wish I was using a better option), I have an issue where if I delete a user or the accessToken from my separate backend is not valid anymore, users can have a token and an empty session and still access protected routes, but obviously all data is absent, how can I invalidate them?

0 Replies