From fd12f22aa709120bc9d2ee1c5db1118f40f57e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Sun, 22 Jun 2025 17:47:55 +0200 Subject: [PATCH] Clear token on signout --- src/routes/auth/signout/+page.svelte | 11 +++++++++++ src/routes/auth/signout/+server.ts | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/routes/auth/signout/+page.svelte diff --git a/src/routes/auth/signout/+page.svelte b/src/routes/auth/signout/+page.svelte new file mode 100644 index 0000000..dceffee --- /dev/null +++ b/src/routes/auth/signout/+page.svelte @@ -0,0 +1,11 @@ + + +

Signing out...

diff --git a/src/routes/auth/signout/+server.ts b/src/routes/auth/signout/+server.ts index cf49ff6..25340c9 100644 --- a/src/routes/auth/signout/+server.ts +++ b/src/routes/auth/signout/+server.ts @@ -6,5 +6,4 @@ export const GET: RequestHandler = async ({ locals }) => { if (locals.supabase) { await locals.supabase.auth.signOut(); } - throw redirect(303, '/'); };