mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
docs: fix vue example
This commit is contained in:
34
examples/nuxt-example/pages/dashboard.vue
Normal file
34
examples/nuxt-example/pages/dashboard.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<script setup lang="ts">
|
||||
import { useSession } from "~/lib/auth-client";
|
||||
|
||||
const session = useSession()
|
||||
</script>
|
||||
|
||||
|
||||
<template>
|
||||
<div class="min-h-[80vh] flex items-center justify-center overflow-hidden no-visible-scrollbar px-6 md:px-0">
|
||||
<Card class="w-[350px]">
|
||||
<CardHeader>
|
||||
<CardTitle>
|
||||
User
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div class="flex gap-2 items-center">
|
||||
<Avatar>
|
||||
<AvatarImage src="" alt="@radix-vue" />
|
||||
<AvatarFallback>CN</AvatarFallback>
|
||||
</Avatar>
|
||||
<div>
|
||||
<p class="text-sm">
|
||||
{{ session.data?.user?.name }}
|
||||
</p>
|
||||
<p class="text-xs">
|
||||
{{ session.data?.user?.email }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user