<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>
