Handle/Identify (and Cancel) Server Action in Middleware #54753
Unanswered
Xanacas
asked this question in
App Router
Replies: 1 comment 3 replies
-
@Xanacas were you able to come up with any solution or workaround? Running into this myself at the moment. |
Beta Was this translation helpful? Give feedback.
3 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 Everyone,
I've implemented my own simple oauth2 logic, that stores a JWT as a cookie and my middleware secures several routes by validating the JWT and redirect to login page, if user is not logged in or JWT is expired.
However, in some situation the use is probably on a protected site with a form- / serveraction and the JWT did expire.
2 Questions:
Beta Was this translation helpful? Give feedback.
All reactions