fix: set redirect uri for google login and prevent router push when login by google

This commit is contained in:
fathisiddiqi
2025-06-24 20:15:13 +07:00
parent a8d6bbd03a
commit 6626a8c413
4 changed files with 6 additions and 3 deletions

View File

@ -52,8 +52,8 @@ function LoginForm() {
try {
await signIn.social({
provider: "google",
callbackURL: "/editor",
});
router.push("/editor");
} catch (error) {
setError("Failed to sign in with Google. Please try again.");
setIsGoogleLoading(false);