Jwt authentication in next js #15600
Unanswered
Sandeep06Dev
asked this question in
Help
Replies: 1 comment 5 replies
-
Check this sandbox, i have used context api to authenticated on client side |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hi brilliant guys..
I want any code snippets by which we can add jwt authentication in few pages.
E.g
I have a login.jsx and profile.jsx.
I want to open profile.jsx only when its has a valid jwt token.. Additional if any one try to open profile.jsx from address bar (without jwt authentication) then they
should be redirect to login.jsx
Beta Was this translation helpful? Give feedback.
All reactions