next/pages/auth/logout.vue

16 lines
346 B
Vue
Raw Permalink Normal View History

2023-10-10 22:37:40 -04:00
<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;
2023-10-10 22:37:40 -04:00
</script>
<template>
<a-typography-title :level="3"> Signed out. 👋 </a-typography-title>
</template>