refactor components and notifications bug

This commit is contained in:
Michael Dausmann
2023-10-06 19:16:37 +11:00
parent a64bdc19ab
commit 4cb78b0060
13 changed files with 174 additions and 92 deletions

View File

@@ -0,0 +1,20 @@
<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>