Merge pull request #48 from fathisiddiqi/fix/google-login
fix: set redirect uri for google login and prevent router push when login by google
This commit is contained in:
commit
b66e85cf4d
|
|
@ -52,8 +52,8 @@ function LoginForm() {
|
||||||
try {
|
try {
|
||||||
await signIn.social({
|
await signIn.social({
|
||||||
provider: "google",
|
provider: "google",
|
||||||
|
callbackURL: "/editor",
|
||||||
});
|
});
|
||||||
router.push("/editor");
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setError("Failed to sign in with Google. Please try again.");
|
setError("Failed to sign in with Google. Please try again.");
|
||||||
setIsGoogleLoading(false);
|
setIsGoogleLoading(false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue