mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
examples: nuxt
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { useSession, signOut } from "~/lib/auth-client";
|
||||
const session = useSession();
|
||||
const router = useRouter();
|
||||
</script>
|
||||
|
||||
|
||||
@@ -27,12 +28,12 @@ const session = useSession();
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</CardContent>
|
||||
<CardFooter>
|
||||
<Button @click="async()=>{
|
||||
await signOut()
|
||||
}">
|
||||
router.push('/')
|
||||
}" variant="secondary" >
|
||||
Sing Out
|
||||
</Button>
|
||||
</CardFooter>
|
||||
|
||||
Reference in New Issue
Block a user