Replies: 1 comment 1 reply
-
I've tested and was able to get Here's a reproduction: |
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.
-
I am currently using jwt-token based authentication.
The jwt is stored in a httpOnly cookie.
Now if the cookie expires, svelte returns /__invalid, which causes load operations to re-run but hooks.ts don't seem to.
The desired behaviour would be to have the page re-run the hook, so it detects that the session ran out and redirects the user to login page (that part is already in hooks, just doesn't get called on invalidate)
Appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions