Skip to content

Commit 23f543e

Browse files
committed
Fix biometrics unlock when pin is enabled
1 parent 3b97093 commit 23f543e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

apps/browser/src/background/main.background.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -726,17 +726,6 @@ export default class MainBackground {
726726

727727
const pinStateService = new PinStateService(this.stateProvider);
728728

729-
this.pinService = new PinService(
730-
this.accountService,
731-
this.encryptService,
732-
this.kdfConfigService,
733-
this.keyGenerationService,
734-
this.logService,
735-
this.keyService,
736-
this.sdkService,
737-
pinStateService,
738-
);
739-
740729
this.appIdService = new AppIdService(this.storageService, this.logService);
741730

742731
this.userDecryptionOptionsService = new UserDecryptionOptionsService(this.stateProvider);
@@ -756,16 +745,6 @@ export default class MainBackground {
756745
VaultTimeoutStringType.OnRestart, // default vault timeout
757746
);
758747

759-
this.biometricsService = new BackgroundBrowserBiometricsService(
760-
runtimeNativeMessagingBackground,
761-
this.logService,
762-
this.keyService,
763-
this.biometricStateService,
764-
this.messagingService,
765-
this.vaultTimeoutSettingsService,
766-
this.pinService,
767-
);
768-
769748
this.apiService = new ApiService(
770749
this.tokenService,
771750
this.platformUtilsService,
@@ -849,6 +828,27 @@ export default class MainBackground {
849828
this.configService,
850829
);
851830

831+
this.pinService = new PinService(
832+
this.accountService,
833+
this.encryptService,
834+
this.kdfConfigService,
835+
this.keyGenerationService,
836+
this.logService,
837+
this.keyService,
838+
this.sdkService,
839+
pinStateService,
840+
);
841+
842+
this.biometricsService = new BackgroundBrowserBiometricsService(
843+
runtimeNativeMessagingBackground,
844+
this.logService,
845+
this.keyService,
846+
this.biometricStateService,
847+
this.messagingService,
848+
this.vaultTimeoutSettingsService,
849+
this.pinService,
850+
);
851+
852852
this.passwordStrengthService = new PasswordStrengthService();
853853

854854
this.passwordGenerationService = legacyPasswordGenerationServiceFactory(

0 commit comments

Comments
 (0)