You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi im using nextAuth togther with our backend when the user try to login or register he make a call to our backend that generate a JWT and save it on the cookies.
now i want to check each time the user is loading or refreshing the page for the validation of the JWT.
when I try to use the getSession OR useSession in _app file it dosent work and make some errors .
what is the right way to do that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi im using nextAuth togther with our backend when the user try to login or register he make a call to our backend that generate a JWT and save it on the cookies.
now i want to check each time the user is loading or refreshing the page for the validation of the JWT.
when I try to use the getSession OR useSession in _app file it dosent work and make some errors .
what is the right way to do that?
Beta Was this translation helpful? Give feedback.
All reactions