next/pages/auth/logout.vue
2024-04-20 20:56:47 -04:00

16 lines
346 B
Vue

<script lang="ts" setup>
definePageMeta({
middleware: ["auth"],
});
const { signOut } = useAuth();
signOut({
callbackUrl: "/",
});
const d = inject<Ref<boolean>>("dark");
d.value = false;
document.body.dataset.theme = undefined;
</script>
<template>
<a-typography-title :level="3"> Signed out. 👋 </a-typography-title>
</template>