Refresh token rotation (Credentials provider, custom API) #6347
Replies: 5 comments
-
Have you solved this problem yet? I am also facing the same problem. |
Beta Was this translation helpful? Give feedback.
-
Hey guys! Did you solve this ? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this discussion ? I feel like there should be a better documentation for app router & custom backend in next auth's documentation that shows best practices on handling Refresh Token. I can confirm that the first point amongst others is legit. |
Beta Was this translation helpful? Give feedback.
-
Hey! Did you solve this problem ? |
Beta Was this translation helpful? Give feedback.
-
Solved by providing a
|
Beta Was this translation helpful? Give feedback.
-
I am using the Credentials Provider with my own API to authenticate on Next 13. Unfortunately, I'm encountering several issues with my Next Auth authentication…
Oddly enough, I've had the problem several times... For example after the sign-in, I always pushed the user to the next page with the nextjs router. Was possible because the session was updated in the browser immediately after signing in. But that didn't work anymore: After signing in, the user was logged in, but I had to manually reload the page so that the session was really active... I don’t know what I am doing wrong…
[...nextauth.js]
_app.jsx
Can someone please help me with this? Unfortunately I can't get any further...
Beta Was this translation helpful? Give feedback.
All reactions