middleware with jwt token from backend services #821
Closed
ehsanrezaeee
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi, any update on this ? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
when i am trying to use jwt token that i receive from my backend golang and set them in cookies, i use Next js middleware to protect my routes. however there is a missing docs about using cookie authorization and redirecting user to specific route using NextResponse.redirect() with next intl and its middleware
invoking NextResponse.redirect(new URL()) wont redirect users. how can i use NextResponse with next intl createmiddleware() to redirect user to specific path?
Beta Was this translation helpful? Give feedback.
All reactions