1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 18:33:50 +00:00

Fix build

This commit is contained in:
Bernd Schoolmann
2026-02-13 14:20:55 +01:00
parent 3d2f64ba03
commit 3cd45b0ea6
2 changed files with 12 additions and 8 deletions

View File

@@ -1,12 +1,12 @@
import { AsymmetricPublicCryptoKey, UserId } from "@bitwarden/sdk-internal";
import { PublicKey, UserId } from "@bitwarden/sdk-internal";
/**
* Result of the trust verification process.
*/
export type TrustVerificationResult = {
wasTrustDenied: boolean;
trustedOrganizationPublicKeys: AsymmetricPublicCryptoKey[];
trustedEmergencyAccessUserPublicKeys: AsymmetricPublicCryptoKey[];
trustedOrganizationPublicKeys: PublicKey[];
trustedEmergencyAccessUserPublicKeys: PublicKey[];
};
/**

View File

@@ -25,7 +25,7 @@ export class DefaultUserKeyRotationService implements UserKeyRotationService {
private sdkService: SdkService,
private logService: LogService,
private dialogService: DialogService,
) {}
) { }
async changePasswordAndRotateUserKey(
currentMasterPassword: string,
@@ -51,10 +51,14 @@ export class DefaultUserKeyRotationService implements UserKeyRotationService {
using ref = sdk.take();
this.logService.info("[UserKey Rotation] Re-encrypting user data with new user key...");
await ref.value.user_crypto_management().rotate_user_keys_with_password_change({
old_password: currentMasterPassword,
password: newMasterPassword,
hint,
await ref.value.user_crypto_management().rotate_user_keys({
master_key_unlock_method: {
Password: {
old_password: currentMasterPassword,
password: newMasterPassword,
hint: hint,
}
},
trusted_emergency_access_public_keys: trustedEmergencyAccessUserPublicKeys,
trusted_organization_public_keys: trustedOrganizationPublicKeys,
} as RotateUserKeysRequest);