20 lines
425 B
Vue
20 lines
425 B
Vue
|
|
<script setup lang="ts">
|
|
const supabase = useSupabaseAuthClient();
|
|
const accountStore = useAccountStore();
|
|
|
|
onMounted(async () => {
|
|
await accountStore.init()
|
|
});
|
|
|
|
async function signout() {
|
|
await supabase.auth.signOut();
|
|
if(accountStore){
|
|
accountStore.signout();
|
|
}
|
|
navigateTo('/', {replace: true});
|
|
}
|
|
</script>
|
|
<template>
|
|
<a href="#" @click.prevent="signout()">Signout</a>
|
|
</template> |