redirect logic fix google sso

This commit is contained in:
bflatastic committed 2024-09-26 21:07:43 +07:00
1 parent b6adb1b810
commit 83c17cdfb5
2 files changed
+16 -8

No files matched your search

@@ -116,12 +116,16 @@ function LoginPage() {
google_credential: args.credential,
});
// console.log(">>> Google Create Account Response", response);
if (response.username_not_yet_customized === true) {
if (response.success) {
queryAppState();
openModal();
if (response.username_not_yet_customized === true) {
openModal();
}
history.push(redirectUrl);
} else {
console.error("Google account creation failed");
}
};
@@ -125,12 +125,16 @@ function SignupPage() {
google_credential: args.credential,
});
// console.log(">>> Google Create Account Response", response);
if (response.username_not_yet_customized === true) {
if (response.success) {
queryAppState();
openModal();
if (response.username_not_yet_customized === true) {
openModal();
}
history.push(redirectUrl);
} else {
console.error("Google account creation failed");
}
};