1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 10:23:52 +00:00

Small clean-up

This commit is contained in:
Bernd Schoolmann
2026-02-17 10:57:26 +01:00
parent 2cf87b4c03
commit 4d7047ae82

View File

@@ -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",