Skip to content

Commit

Permalink
fix: sign out localstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSM committed Dec 1, 2023
1 parent 04e9f6f commit 820b32a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/app/pages/sign-out.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<script setup lang="ts">
const router = useRouter();
const sessionStore = useSessionStore();
await sessionStore.signOut();
router.push("/sign-in");
onMounted(async () => {
await sessionStore.signOut();
router.push("/sign-in");
});
</script>

<template>
Expand Down

0 comments on commit 820b32a

Please sign in to comment.