|
@ -61,7 +61,9 @@ export class RegisterPageComponent implements OnDestroy, OnInit { |
|
|
public async onLoginWithInternetIdentity() { |
|
|
public async onLoginWithInternetIdentity() { |
|
|
try { |
|
|
try { |
|
|
const { authToken } = await this.internetIdentityService.login(); |
|
|
const { authToken } = await this.internetIdentityService.login(); |
|
|
|
|
|
|
|
|
this.tokenStorageService.saveToken(authToken); |
|
|
this.tokenStorageService.saveToken(authToken); |
|
|
|
|
|
|
|
|
await this.router.navigate(['/']); |
|
|
await this.router.navigate(['/']); |
|
|
} catch {} |
|
|
} catch {} |
|
|
} |
|
|
} |
|
|