@@ -7,18 +7,15 @@ import {
77} from "@bitwarden/auth/common" ;
88import { WebAuthnLoginPrfKeyServiceAbstraction } from "@bitwarden/common/auth/abstractions/webauthn/webauthn-login-prf-key.service.abstraction" ;
99import { ClientType } from "@bitwarden/common/enums" ;
10- import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum" ;
1110import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service" ;
1211import { EncString } from "@bitwarden/common/key-management/crypto/models/enc-string" ;
13- import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service" ;
1412import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service" ;
1513import { LogService } from "@bitwarden/common/platform/abstractions/log.service" ;
1614import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service" ;
1715import { Utils } from "@bitwarden/common/platform/misc/utils" ;
1816import { Fido2Utils } from "@bitwarden/common/platform/services/fido2/fido2-utils" ;
1917import { UserId } from "@bitwarden/common/types/guid" ;
2018import { PrfKey , UserKey } from "@bitwarden/common/types/key" ;
21- import { KeyService } from "@bitwarden/key-management" ;
2219
2320import { WebAuthnPrfUnlockService } from "./webauthn-prf-unlock.service" ;
2421
@@ -27,28 +24,18 @@ export class DefaultWebAuthnPrfUnlockService implements WebAuthnPrfUnlockService
2724
2825 constructor (
2926 private webAuthnLoginPrfKeyService : WebAuthnLoginPrfKeyServiceAbstraction ,
30- private keyService : KeyService ,
3127 private userDecryptionOptionsService : UserDecryptionOptionsServiceAbstraction ,
3228 private encryptService : EncryptService ,
3329 private environmentService : EnvironmentService ,
3430 private platformUtilsService : PlatformUtilsService ,
3531 private window : Window ,
3632 private logService : LogService ,
37- private configService : ConfigService ,
3833 ) {
3934 this . navigatorCredentials = this . window . navigator . credentials ;
4035 }
4136
4237 async isPrfUnlockAvailable ( userId : UserId ) : Promise < boolean > {
4338 try {
44- // Check if feature flag is enabled
45- const passkeyUnlockEnabled = await this . configService . getFeatureFlag (
46- FeatureFlag . PasskeyUnlock ,
47- ) ;
48- if ( ! passkeyUnlockEnabled ) {
49- return false ;
50- }
51-
5239 // Check if browser supports WebAuthn
5340 if ( ! this . navigatorCredentials || ! this . navigatorCredentials . get ) {
5441 return false ;
0 commit comments