<!-- /pages/index.vue -->
<template>
  <div>
    <h1>Dashboard</h1>
    <p v-if="user">Welcome, {{ user.nickname }}!</p>
    <button @click="logout">Logout</button>
  </div>
</template>

<script setup lang="ts">
const { user, logout } = useAuth();
</script>
