mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +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 (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 {
|
||||
decrypted = await encrypted.decrypt(this.encryptService, userPrivateKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user