fix: redirects to /projects after login instead of /editor

This commit is contained in:
omraval18
2025-07-11 00:33:31 +05:30
parent e8b0057cc4
commit 3e45be5c47

View File

@ -25,7 +25,7 @@ export function useLogin() {
return;
}
router.push("/editor");
router.push("/projects");
}, [router, email, password]);
const handleGoogleLogin = async () => {
@ -35,7 +35,7 @@ export function useLogin() {
try {
await signIn.social({
provider: "google",
callbackURL: "/editor",
callbackURL: "/projects",
});
} catch (error) {
setError("Failed to sign in with Google. Please try again.");