fix sveltekit load / preload bug on logout
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user