1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00

fix migration test (#9163)

This commit is contained in:
rr-bw 2024-05-13 14:18:54 -07:00 committed by GitHub
parent 3900924250
commit 8e4073f1ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,9 +387,10 @@ export class PinService implements PinServiceAbstraction {
);
const encUserKey = await this.stateService.getEncryptedCryptoSymmetricKey({ userId: userId });
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(
masterKey,
new EncString(encUserKey),
encUserKey ? new EncString(encUserKey) : undefined,
);
const pinKeyEncryptedUserKey = await this.createPinKeyEncryptedUserKey(pin, userKey, userId);