feat: Init project with frontend and rudimentary authentication

This commit is contained in:
2025-02-07 15:44:04 +01:00
commit 84e701131f
20 changed files with 7054 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<template>
<div>
<pre>{{ session }}</pre>
<h1>{{ session.data ? "Du bist eingeloggt" : "Nicht eingeloggt"}}</h1>
<button v-if="session?.data" @click="authClient.signOut()">
Sign out
</button>
</div>
<Register />
<Login />
</template>
<script setup lang="ts">
const session = authClient.useSession()
</script>