mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
PM-13659 - 2FA Timeout Log All the things (#12275)
This commit is contained in:
@@ -102,10 +102,20 @@ export class TwoFactorComponent extends CaptchaProtectedComponent implements OnI
|
||||
super(environmentService, i18nService, platformUtilsService, toastService);
|
||||
this.webAuthnSupported = this.platformUtilsService.supportsWebAuthn(win);
|
||||
|
||||
this.logService.info(
|
||||
"Subscribing to timeout on LoginStrategyService with service id: " +
|
||||
this.loginStrategyService.id,
|
||||
);
|
||||
|
||||
// Add subscription to twoFactorTimeout$ and navigate to twoFactorTimeoutRoute if expired
|
||||
this.loginStrategyService.twoFactorTimeout$
|
||||
.pipe(takeUntilDestroyed())
|
||||
.subscribe(async (expired) => {
|
||||
this.logService.info(
|
||||
"Received emission from LoginStrategyService.twoFactorTimeout$ with service id: " +
|
||||
this.loginStrategyService.id,
|
||||
);
|
||||
|
||||
if (!expired) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user