hackathon/web_src/routes/logout.svelte

19 lines
323 B
Svelte

2022-04-28 23:31:09 +07:00
<script lang="ts" context="module">
export const router = false;
</script>
<script lang="ts">
import { onMount } from 'svelte';
import { auth } from '$lib/stores';
onMount(() => {
$auth.logout();
window.location.href = '/';
});
</script>
<svelte:head>
<title>Logging out... | CodeQuest</title>
</svelte:head>