Replies: 1 comment
-
Was it ever solved? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to nextjs and nextauth and I am trying to rotate my refresh tokens with next auth and django and i figured out using the jwt callback is not effective due to it not updating the session in the next request . so im using the middleware to refresh my tokens. The problem is when i try to get the access token from the Gettoken and send it to my backend i get this error from my backend code 400, message Bad request syntax ('125') it doesnt happen when i use the jwt callback but happens in middle ware how can i solve it ? Here is the code .
And this is my Refresh Action
I would appreciate if someone can help me
Beta Was this translation helpful? Give feedback.
All reactions