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

	function logout() {
		localStorage.removeItem('authentication');
		authentication.set(null);
		localStorage.clear();
		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>
