JWT and App router #69717
Unanswered
veganmasterclass
asked this question in
App Router
JWT and App router
#69717
Replies: 1 comment
-
|
Welcome to the club! ^_^ I've been struggling with the storage and update issue for two weeks now. The current status is here. If you don't have the challenge of token rotation, it's probably solved through middleware. |
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.
-
I want to migrate von page router to app router. Currently we use for for authorization a JWT (Json Web Token) that we set in every client side request via the middleware.ts file. The JWT comes from a third party server.
So in app router, as far as I understand, we render a lots of files during build. The problem is, during build time we dont know the user. So as a consequence I need to leave the whole application client side rendered.
Do you have another solution for me to integrate JWT with app router?
Beta Was this translation helpful? Give feedback.
All reactions