1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 18:33:50 +00:00
This commit is contained in:
Bernd Schoolmann
2026-02-17 10:54:22 +01:00
parent 6d55e2dbae
commit 2cf87b4c03
3 changed files with 5 additions and 9 deletions

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.

View File

@@ -94,11 +94,7 @@ describe("DefaultUserKeyRotationService", () => {
mockSdkService.userClient$.mockReturnValue(of(mockSdkClient as any));
service = new DefaultUserKeyRotationService(
mockSdkService,
mockLogService,
mockDialogService,
);
service = new DefaultUserKeyRotationService(mockSdkService, mockLogService, mockDialogService);
KeyRotationTrustInfoComponent.open = initialPromptedOpenTrue;
EmergencyAccessTrustComponent.open = emergencyAccessTrustOpenTrusted;

View File

@@ -25,7 +25,7 @@ export class DefaultUserKeyRotationService implements UserKeyRotationService {
private sdkService: SdkService,
private logService: LogService,
private dialogService: DialogService,
) { }
) {}
async changePasswordAndRotateUserKey(
currentMasterPassword: string,
@@ -57,7 +57,7 @@ export class DefaultUserKeyRotationService implements UserKeyRotationService {
old_password: currentMasterPassword,
password: newMasterPassword,
hint: hint,
}
},
},
trusted_emergency_access_public_keys: trustedEmergencyAccessUserPublicKeys,
trusted_organization_public_keys: trustedOrganizationPublicKeys,