JWT authentification using next js 13 front and express back
Unanswered
Africanized honey bee posted this in #help-forum
Africanized honey beeOP
can someone give me exapmple how the fuck i can reach what i want.
i have express server and route which returns jwt token as cookie on login. Then i want use this cookie to see if it present on front when user visit localhost:3000/ and redirect to /login if not
first sceent is where i try to store it in localstorage and then check, seems fine but i got TREE MISMATCH
second my express configuration
third my route which returns token
i have express server and route which returns jwt token as cookie on login. Then i want use this cookie to see if it present on front when user visit localhost:3000/ and redirect to /login if not
first sceent is where i try to store it in localstorage and then check, seems fine but i got TREE MISMATCH
second my express configuration
third my route which returns token
1 Reply
Skipjack tuna
Hi, did you find the solution ?