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_REDIRECTS
situation in a spacial case:but what actually happening is: The stale token never got deleted. I am getting into
ERR_TOO_MANY_REDIRECTS
This is not working
as workaround I had to do this. but this don't work properly with
progressively enhance forms
wonder 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.ts
don't setevent.locals.user
,+layout.server.ts
will block requests going to+page.server.ts
But actually requests are going to
+page.server.ts
and+layout.server.ts
redirect not working for inline request.Beta Was this translation helpful? Give feedback.
All reactions