mirror of
https://github.com/bitwarden/browser
synced 2026-02-18 10:23:52 +00:00
Small clean-up
This commit is contained in:
@@ -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<string | undefined> {
|
||||
// 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<void> {
|
||||
// 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",
|
||||
|
||||
Reference in New Issue
Block a user