1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-06 18:57:56 +01:00

pass key to encrypt service

This commit is contained in:
Jacob Fink 2023-06-26 16:45:14 -04:00
parent 3e11a9b092
commit 57d270b08b
No known key found for this signature in database
GPG Key ID: C2F7ACF05859D008

View File

@ -458,7 +458,10 @@ export class CryptoService implements CryptoServiceAbstraction {
return null;
}
const privateKey = await this.encryptService.decryptToBytes(new EncString(encPrivateKey), null);
const privateKey = await this.encryptService.decryptToBytes(
new EncString(encPrivateKey),
await this.getKeyForUserEncryption()
);
await this.stateService.setDecryptedPrivateKey(privateKey);
return privateKey;
}