mirror of
https://github.com/bitwarden/browser
synced 2026-02-27 01:53:23 +00:00
[PM-31763] Add unlock service & module (#18870)
* Add unlock service * Move methods * Prettier * Fix type errors * Prettier * Fix test * Fix module order * Attempt to fix tests * Cleanup CODEOWNERS * Backport biometric unlock and legacy master-key logic * Add tests for biometrics * Prettier * Add biometric unlock to abstract unlock service * Fix build
This commit is contained in:
@@ -389,6 +389,7 @@ import {
|
||||
DefaultStateService,
|
||||
} from "@bitwarden/state-internal";
|
||||
import { SafeInjectionToken } from "@bitwarden/ui-common";
|
||||
import { DefaultUnlockService, UnlockService } from "@bitwarden/unlock";
|
||||
// This import has been flagged as unallowed for this class. It may be involved in a circular dependency loop.
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||
@@ -919,6 +920,22 @@ const safeProviders: SafeProvider[] = [
|
||||
useClass: DefaultAccountCryptographicStateService,
|
||||
deps: [StateProvider],
|
||||
}),
|
||||
safeProvider({
|
||||
provide: UnlockService,
|
||||
useClass: DefaultUnlockService,
|
||||
deps: [
|
||||
RegisterSdkService,
|
||||
AccountCryptographicStateService,
|
||||
PinStateServiceAbstraction,
|
||||
KdfConfigService,
|
||||
AccountServiceAbstraction,
|
||||
InternalMasterPasswordServiceAbstraction,
|
||||
CryptoFunctionServiceAbstraction,
|
||||
StateProvider,
|
||||
LogService,
|
||||
BiometricsService,
|
||||
],
|
||||
}),
|
||||
safeProvider({
|
||||
provide: BroadcasterService,
|
||||
useClass: DefaultBroadcasterService,
|
||||
|
||||
Reference in New Issue
Block a user