Skip to content

Commit

Permalink
Merge pull request #43 from auguzsto/fix-index-page-after-sign-in
Browse files Browse the repository at this point in the history
fix: change router.push to navigateTo after signOut()
  • Loading branch information
BernardoSM committed Feb 16, 2024
2 parents 69d10bf + d466a3b commit f5ee9cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/app/pages/sign-out.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script setup lang="ts">
const router = useRouter();
const sessionStore = useSessionStore();
onMounted(async () => {
await sessionStore.signOut();
router.push("/sign-in");
navigateTo("/sign-in", {
external: true,
});
});
</script>

Expand Down

0 comments on commit f5ee9cd

Please sign in to comment.