aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/authentication/log-out/+server.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-01 16:20:51 -0800
committerFuwn <[email protected]>2026-03-01 16:21:02 -0800
commiteae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch)
tree1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/routes/api/authentication/log-out/+server.ts
parentchore(tooling): remove legacy eslint and prettier (diff)
downloaddue.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.tar.xz
due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.zip
chore(biome): drop formatter style overrides
Diffstat (limited to 'src/routes/api/authentication/log-out/+server.ts')
-rw-r--r--src/routes/api/authentication/log-out/+server.ts22
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("/"));
};