Replies: 1 comment 4 replies
-
You'll have to add the cookies.delete('jwt', { path: '/' }); See this issue and this PR for some insight into why |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have recently migrated from
1.0.0-next.449
to1.0.0-next.484
.I have a
/logout
endpoint with a+page.server.js
and a+page.svelte
. In theserver
I changed it from:to
Much nicer, but now it doesn't actually set / delete the cookie when the svelte navigation goes to that page. I had to add
rel="external"
to my logout navigation button to force sveltekit to hard refresh and run the load function or something? What's up with that.Beta Was this translation helpful? Give feedback.
All reactions