u
This commit is contained in:
@@ -52,6 +52,11 @@ class LoginPage extends PureComponent {
|
||||
this.setState({ busy: true });
|
||||
await authAutomat.actions.loginWithGoogle(idToken);
|
||||
await bootstrapAuthMe();
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const returnTo = params.get('returnTo');
|
||||
if (returnTo) {
|
||||
window.location.replace(returnTo);
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof GoogleSignInCancelledError) return;
|
||||
logError('[login] Google sign-in failed', {
|
||||
|
||||
Reference in New Issue
Block a user