feat: Google One Tap should be hidden after logged in (#2853)

* fix: Google One Tap should be hidden after logged in

* Change the call location for google.accounts.id.cancel()
This commit is contained in:
xyt
2024-04-05 20:10:13 +08:00
committed by GitHub
parent 0329d24867
commit 1d785e61c6

View File

@ -374,6 +374,7 @@ class App extends Component {
});
}}
onLoginSuccess={(redirectUrl) => {
window.google?.accounts?.id?.cancel();
if (redirectUrl) {
localStorage.setItem("mfaRedirectUrl", redirectUrl);
}