anmeldunf +page.server.js delete coockie

This commit is contained in:
titver968
2025-04-08 13:51:35 +02:00
parent a7f9a2b4a9
commit aa65665dca
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ export const actions = {
throw redirect(303, '/');
},
logout: async (event) => {
event.cookies.delete(COOKIE_NAME);
event.cookies.delete(COOKIE_NAME, {path: '/'});
event.locals.user = null;
return { success: true };
}