Update login-page.component.ts
This commit is contained in:
@@ -69,15 +69,15 @@ export class LoginPageComponent implements OnInit {
|
|||||||
email: responsePayload.email,
|
email: responsePayload.email,
|
||||||
avatar: responsePayload.picture
|
avatar: responsePayload.picture
|
||||||
});
|
});
|
||||||
//this.ngZone$.run(() => {
|
this.ngZone$.run(() => {
|
||||||
// this.loading = true;
|
this.loading = true;
|
||||||
//});
|
});
|
||||||
this.auth$.googleCredential = response.credential;
|
this.auth$.googleCredential = response.credential;
|
||||||
console.log(response.credential);
|
console.log(response.credential);
|
||||||
await this.auth$.getAPIToken();
|
await this.auth$.getAPIToken();
|
||||||
this.ngZone$.run(() => {
|
//this.ngZone$.run(() => {
|
||||||
this.router$.navigate(['/app']);
|
// this.router$.navigate(['/app']);
|
||||||
});
|
//});
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error('handleCredentialResponse', e);
|
console.error('handleCredentialResponse', e);
|
||||||
|
|||||||
Reference in New Issue
Block a user