diff --git a/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts b/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts index 57577422544..4102f3e5554 100644 --- a/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts +++ b/apps/web/src/app/key-management/key-rotation/user-key-rotation.service.ts @@ -71,7 +71,7 @@ type MasterPasswordAuthenticationAndUnlockData = { * A token provider that exposes a null access token to the SDK. */ class NoopTokenProvider implements TokenProvider { - constructor() {} + constructor() { } async get_access_token(): Promise { // Ignore from the test coverage, since this is called by the SDK @@ -106,7 +106,7 @@ export class UserKeyRotationService { private securityStateService: SecurityStateService, private sdkService: SdkService, private masterPasswordService: MasterPasswordServiceAbstraction, - ) {} + ) { } /** * Creates a new user key and re-encrypts all required data with the it. @@ -121,9 +121,7 @@ export class UserKeyRotationService { user: Account, newMasterPasswordHint?: string, ): Promise { - // Check if SDK-based key rotation is enabled const useSdkKeyRotation = await this.configService.getFeatureFlag(FeatureFlag.SdkKeyRotation); - if (useSdkKeyRotation) { this.logService.info( "[UserKey Rotation] Using SDK-based key rotation service from user-crypto-management",