mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[PM-16984] Improve decryption code clarity (#12681)
* Improve decrypt failure logging * Rename decryptcontext to decrypttrace * Improve docs
This commit is contained in:
@@ -368,20 +368,20 @@ export class DefaultKeyService implements KeyServiceAbstraction {
|
||||
await this.stateProvider.getUser(userId, USER_ENCRYPTED_ORGANIZATION_KEYS).update(() => {
|
||||
const encOrgKeyData: { [orgId: string]: EncryptedOrganizationKeyData } = {};
|
||||
|
||||
orgs.forEach((org) => {
|
||||
for (const org of orgs) {
|
||||
encOrgKeyData[org.id] = {
|
||||
type: "organization",
|
||||
key: org.key,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
providerOrgs.forEach((org) => {
|
||||
for (const org of providerOrgs) {
|
||||
encOrgKeyData[org.id] = {
|
||||
type: "provider",
|
||||
providerId: org.providerId,
|
||||
key: org.key,
|
||||
};
|
||||
});
|
||||
}
|
||||
return encOrgKeyData;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user