JWT getting renewed after accessing pages protected by middleware #13021
Unanswered
GuilhermeRPimenta
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.
-
I'm using auth.js 5.0.0-beta.25. It seems that every time the next.js middleware is called, I get a new JWT with a new expiration date. I couldn't find why does this happen.
middleware.ts:
jwt callback:
session callback:
Beta Was this translation helpful? Give feedback.
All reactions