diff --git a/src/lib/components/SignOut.svelte b/src/lib/components/SignOut.svelte index a4cc2bf..5d355ae 100644 --- a/src/lib/components/SignOut.svelte +++ b/src/lib/components/SignOut.svelte @@ -1,5 +1,8 @@ diff --git a/src/routes/account/+page.server.ts b/src/routes/account/+page.server.ts index 6a5bf00..f03bd02 100644 --- a/src/routes/account/+page.server.ts +++ b/src/routes/account/+page.server.ts @@ -78,12 +78,5 @@ export const actions: Actions = { return { name }; - }, - signout: async ({ locals: { supabase, safeGetSession } }) => { - const { session } = await safeGetSession(); - if (session) { - await supabase.auth.signOut(); - redirect(303, '/'); - } } };