dash.jonasjones.dev/src/routes/+page.svelte
2025-03-07 23:48:06 -05:00

17 lines
477 B
Svelte

<script>
import { onMount } from 'svelte';
import { ensureAuthenticated } from '$lib/session.js';
onMount(() => {
ensureAuthenticated(); // This will check the session key and redirect if necessary
});
</script>
<svelte:head>
<title>Home</title>
<meta name="description" content="Svelte demo app" />
</svelte:head>
<h2>Welcome to the Dashboard</h2>
<p>You are logged in and have access to this page.</p>
<img src="https://cdn.tw25.net/img/jonrefs/party.gif"></img>