<script>
    import {onMount} from "svelte";
    import {auth} from '../store.js';

    function logout() {
        auth.set(null);
        localStorage.removeItem('auth');
        window.location.href = "/login";
    }

    onMount(() => {
        logout();
    });
</script>

<svelte:head>
    <title>Logout</title>
    <meta name="description" content="Logout page"/>
</svelte:head>

<div class="text-column">
    <p>Logging you out...</p>
    <p>Please wait...</p>
</div>
