Clear token on signout
All checks were successful
Build Docker image / build (pull_request) Successful in 4m39s

This commit is contained in:
Roman Krček
2025-06-22 17:47:55 +02:00
parent 14213fe341
commit fd12f22aa7
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
<script lang="ts">
import { onMount } from 'svelte';
import { goto } from '$app/navigation';
onMount(() => {
localStorage.clear();
goto('/');
});
</script>
<p>Signing out...</p>

View File

@@ -6,5 +6,4 @@ export const GET: RequestHandler = async ({ locals }) => {
if (locals.supabase) {
await locals.supabase.auth.signOut();
}
throw redirect(303, '/');
};