Skip to content

Commit

Permalink
fix(ci): changement de la technique de redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
bachrc committed Oct 20, 2024
1 parent cc66d19 commit 2a5f4de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/logout/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { pb } from '$lib/database';
import { redirect } from '@sveltejs/kit';
import { onMount } from 'svelte';
pb.authStore.clear();
goto('/');
onMount(() => {
goto('/');
});
</script>

0 comments on commit 2a5f4de

Please sign in to comment.