Client side route checking #932
Unanswered
niteshbalusu11
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello - Let's say I get a JWT token from another server running somewhere, I take the token and store it in the local storage of the browser. Is there anything that can check client side and validate if the token is valid and if not redirect to a different page? I could put a check in every page but can there be a global check where first a piece of code runs when a user is navigating between pages?
Middleware only runs on the server so it doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions