diff options
Diffstat (limited to 'src/routes/api/authentication/log-out')
| -rw-r--r-- | src/routes/api/authentication/log-out/+server.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/routes/api/authentication/log-out/+server.ts b/src/routes/api/authentication/log-out/+server.ts index 26b5dd2c..c04fa5c5 100644 --- a/src/routes/api/authentication/log-out/+server.ts +++ b/src/routes/api/authentication/log-out/+server.ts @@ -1,15 +1,15 @@ -import root from '$lib/Utility/root.js'; -import { redirect } from '@sveltejs/kit'; +import root from "$lib/Utility/root.js"; +import { redirect } from "@sveltejs/kit"; export const GET = ({ cookies }) => { - cookies.delete('user', { path: '/' }); - cookies.set('logout', '1', { - path: '/', - maxAge: 60 * 60 * 24 * 7, - httpOnly: false, - sameSite: 'lax', - secure: false - }); + cookies.delete("user", { path: "/" }); + cookies.set("logout", "1", { + path: "/", + maxAge: 60 * 60 * 24 * 7, + httpOnly: false, + sameSite: "lax", + secure: false, + }); - redirect(303, root('/')); + redirect(303, root("/")); }; |