examples: nuxt

This commit is contained in:
Bereket Engida
2024-09-27 14:21:27 +03:00
parent 5e6d9640c9
commit 0bd7b420da

View File

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