Access and Refresh tokens and client sided API calling.
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
Hi! I am trying to have my nextauth refresh my api tokens and then send the new access token to the client side. however, when I'm pressing F5 i see that JWT is sending a refresh call to my backend twice at the same time, causing the first and correct refresh token call to be overwritten by the other.
How do I solve this?
How do I solve this?
1 Reply
Polar bearOP
oke. getServersidedSession and usesession were both used in a parent and child layout