next-auth
next-auth copied to clipboard
Refresh token rotation
What is the improvement or update you wish to see?
- The doc on refresh token rotation for JWT, doesn't work with the client side functionality as it doesn't put an error into the session.
- If an error occurs, the session still remains authenticated albeit with an error message attached. This doesn't seem secure as a user can still see resources which require authentication. I believe the status should change to unauthenticated?
Is there any context that might help us understand?
N/A
Does the docs page already exist? Please link to it.
https://authjs.dev/guides/refresh-token-rotation