Skip to content

Commit

Permalink
Update login callback URL to redirect to the home page after successf…
Browse files Browse the repository at this point in the history
…ul sign-in
  • Loading branch information
guillecro committed Dec 19, 2024
1 parent b593a33 commit 625e45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/(auth)/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 625e45e

Please sign in to comment.