1
0
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:
Bernd Schoolmann
2025-05-06 12:29:52 +02:00
committed by GitHub
parent 5166a9c730
commit 855dad7fcc

View File

@@ -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);
} }