mirror of
https://github.com/bitwarden/browser
synced 2026-01-31 00:33:33 +00:00
Wire up DI for PRFUnlockService in desktop (#18587)
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
InternalUserDecryptionOptionsServiceAbstraction,
|
||||
LoginEmailService,
|
||||
SsoUrlService,
|
||||
UserDecryptionOptionsServiceAbstraction,
|
||||
} from "@bitwarden/auth/common";
|
||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||
import { OrganizationApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/organization/organization-api.service.abstraction";
|
||||
@@ -53,6 +54,7 @@ import {
|
||||
import { MasterPasswordApiService } from "@bitwarden/common/auth/abstractions/master-password-api.service.abstraction";
|
||||
import { SsoLoginServiceAbstraction } from "@bitwarden/common/auth/abstractions/sso-login.service.abstraction";
|
||||
import { TokenService } from "@bitwarden/common/auth/abstractions/token.service";
|
||||
import { WebAuthnLoginPrfKeyServiceAbstraction } from "@bitwarden/common/auth/abstractions/webauthn/webauthn-login-prf-key.service.abstraction";
|
||||
import { PendingAuthRequestsStateService } from "@bitwarden/common/auth/services/auth-request-answering/pending-auth-requests.state";
|
||||
import { AutofillSettingsServiceAbstraction } from "@bitwarden/common/autofill/services/autofill-settings.service";
|
||||
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions";
|
||||
@@ -123,6 +125,8 @@ import {
|
||||
import {
|
||||
LockComponentService,
|
||||
SessionTimeoutSettingsComponentService,
|
||||
WebAuthnPrfUnlockService,
|
||||
DefaultWebAuthnPrfUnlockService,
|
||||
} from "@bitwarden/key-management-ui";
|
||||
import { SerializedMemoryStorageService } from "@bitwarden/storage-core";
|
||||
import {
|
||||
@@ -413,6 +417,21 @@ const safeProviders: SafeProvider[] = [
|
||||
useClass: DesktopLockComponentService,
|
||||
deps: [],
|
||||
}),
|
||||
safeProvider({
|
||||
provide: WebAuthnPrfUnlockService,
|
||||
useClass: DefaultWebAuthnPrfUnlockService,
|
||||
deps: [
|
||||
WebAuthnLoginPrfKeyServiceAbstraction,
|
||||
KeyServiceAbstraction,
|
||||
UserDecryptionOptionsServiceAbstraction,
|
||||
EncryptService,
|
||||
EnvironmentService,
|
||||
PlatformUtilsServiceAbstraction,
|
||||
WINDOW,
|
||||
LogServiceAbstraction,
|
||||
ConfigService,
|
||||
],
|
||||
}),
|
||||
safeProvider({
|
||||
provide: CLIENT_TYPE,
|
||||
useValue: ClientType.Desktop,
|
||||
|
||||
Reference in New Issue
Block a user