From 625e45e4b4ad51725ed360a335c599c6f52ccc71 Mon Sep 17 00:00:00 2001 From: Guillermo Croppi Date: Thu, 19 Dec 2024 20:44:02 -0300 Subject: [PATCH] Update login callback URL to redirect to the home page after successful sign-in --- pages/(auth)/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/(auth)/login.vue b/pages/(auth)/login.vue index 965d779..4e5197e 100644 --- a/pages/(auth)/login.vue +++ b/pages/(auth)/login.vue @@ -31,7 +31,7 @@ const showErrorAlert = ref(false); const handleLogin = async () => { isLoading.value = true try { - await signIn({ email: state.email, password: state.password }, { callbackUrl: '/protected' }) + await signIn({ email: state.email, password: state.password }, { callbackUrl: '/' }) } catch (error) { console.log(error) showErrorAlert.value = true