1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

Auth/PM-13659 - 2FA Timeout - Attempted Fix (#12263)

fix(auth): attempt to resolve 2FA session timeout issue
This commit is contained in:
Jared Snider
2024-12-05 20:22:13 -05:00
committed by GitHub
parent d6e1fe70ca
commit 8d68a2dd58
4 changed files with 31 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ import {
PinService,
PinServiceAbstraction,
UserDecryptionOptionsService,
Executor,
} from "@bitwarden/auth/common";
import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service";
import { EventUploadService as EventUploadServiceAbstraction } from "@bitwarden/common/abstractions/event/event-upload.service";
@@ -614,6 +615,11 @@ export class ServiceContainer {
this.configService,
);
// Execute any authn session timeout logic without any wrapping logic.
// An executor is required to ensure the logic is executed in an Angular context when it
// it is available.
const authnSessionTimeoutExecutor: Executor = (fn) => fn();
this.loginStrategyService = new LoginStrategyService(
this.accountService,
this.masterPasswordService,
@@ -640,6 +646,7 @@ export class ServiceContainer {
this.vaultTimeoutSettingsService,
this.kdfConfigService,
this.taskSchedulerService,
authnSessionTimeoutExecutor,
);
// FIXME: CLI does not support autofill