Merge pull request #185 from omraval18/fix/login-redirect-issue
fix: redirects to /projects after login instead of /editor
This commit is contained in:
@ -25,7 +25,7 @@ export function useLogin() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
router.push("/editor");
|
router.push("/projects");
|
||||||
}, [router, email, password]);
|
}, [router, email, password]);
|
||||||
|
|
||||||
const handleGoogleLogin = async () => {
|
const handleGoogleLogin = async () => {
|
||||||
@ -35,7 +35,7 @@ export function useLogin() {
|
|||||||
try {
|
try {
|
||||||
await signIn.social({
|
await signIn.social({
|
||||||
provider: "google",
|
provider: "google",
|
||||||
callbackURL: "/editor",
|
callbackURL: "/projects",
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setError("Failed to sign in with Google. Please try again.");
|
setError("Failed to sign in with Google. Please try again.");
|
||||||
|
Reference in New Issue
Block a user