feat: Init project with frontend and rudimentary authentication
This commit is contained in:
16
legalconsenthub/pages/index.vue
Normal file
16
legalconsenthub/pages/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user