feat:basic auth

This commit is contained in:
2025-09-26 18:47:03 +02:00
parent 3cdb35b763
commit 7e4570cf0e
10 changed files with 308 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
<script lang="ts">
import { enhance } from '$app/forms';
import type { PageServerData } from './$types';
let { data }: { data: PageServerData } = $props();
</script>
<h1>Hi, {data.user.username}!</h1>
<p>Your user ID is {data.user.id}.</p>
<form method="post" action="?/logout" use:enhance>
<button>Sign out</button>
</form>