fix sveltekit load / preload bug on logout

This commit is contained in:
JCEEE
2026-09-08 19:05:04 +01:00
parent de6047f406
commit 6ed1805884
3 changed files with 62 additions and 15 deletions
@@ -6,11 +6,6 @@ function signOut(event: { cookies: any }) {
clearLegacyCookies(event.cookies);
}
export function load(event) {
signOut(event);
throw redirect(303, '/');
}
export const actions = {
default: (event) => {
signOut(event);