Replies: 2 comments 7 replies
-
|
Returning a custom |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement auth hook / middleware to transform user JWT token into user object by parsing and validation the cookie token.
I am getting into
ERR_TOO_MANY_REDIRECTSsituation in a spacial case:but what actually happening is: The stale token never got deleted. I am getting into
ERR_TOO_MANY_REDIRECTSThis is not working
as workaround I had to do this. but this don't work properly with
progressively enhance formswonder if you have butter solution
to reproduce: https://github.com/xmlking/svelte-starter-kit/blob/main/src/lib/middleware/auth.ts
I have this expectation
if
hooks.server.tsdon't setevent.locals.user,+layout.server.tswill block requests going to+page.server.tsBut actually requests are going to
+page.server.tsand+layout.server.tsredirect not working for inline request.Beta Was this translation helpful? Give feedback.
All reactions