mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Do not throw on missing provider keys (#14430)
This commit is contained in:
@@ -1045,9 +1045,9 @@ export class DefaultKeyService implements KeyServiceAbstraction {
|
|||||||
|
|
||||||
if (BaseEncryptedOrganizationKey.isProviderEncrypted(encrypted)) {
|
if (BaseEncryptedOrganizationKey.isProviderEncrypted(encrypted)) {
|
||||||
if (providerKeys == null) {
|
if (providerKeys == null) {
|
||||||
throw new Error("No provider keys found.");
|
continue;
|
||||||
}
|
}
|
||||||
decrypted = await encrypted.decrypt(this.encryptService, providerKeys);
|
decrypted = await encrypted.decrypt(this.encryptService, providerKeys!);
|
||||||
} else {
|
} else {
|
||||||
decrypted = await encrypted.decrypt(this.encryptService, userPrivateKey);
|
decrypted = await encrypted.decrypt(this.encryptService, userPrivateKey);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user