Redirect to profile after signin

This commit is contained in:
Alexis
2024-08-25 14:37:32 +02:00
parent 6c73578b7f
commit 05ae4bfb1f
4 changed files with 9 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ definePageMeta({
const user = useSupabaseUser()
// Redirect user back home when they log out on the page
watch(user, (n, _o) => {
watch(user, (n) => {
if (!n) {
navigateTo("/")
}

View File

@@ -22,7 +22,7 @@ definePageMeta({
const user = useSupabaseUser()
// Redirect user back home when they log out on the page
watch(user, (n, _o) => {
watch(user, (n) => {
if (!n) {
navigateTo("/")
}