mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
* Add Helper For Preparing a Record For Use in `forkJoin` * Update & Test CryptoService Changes * Delete Unused Code * Update DeviceTrustService * Update CipherService * Make `userPublicKey$` Public * Rename convertValues File * Update libs/common/src/platform/abstractions/crypto.service.ts Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com> * Add `convertValues` Tests * Add Doc Comments * Convert to `function`'s Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com> * Fix Test Typos * Add param doc * Update Test Name * Add `@throws` Docs --------- Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com>
12 lines
449 B
TypeScript
12 lines
449 B
TypeScript
import { EncryptedOrganizationKeyData } from "../../../admin-console/models/data/encrypted-organization-key.data";
|
|
import { OrganizationId } from "../../../types/guid";
|
|
import { CRYPTO_DISK, UserKeyDefinition } from "../../state";
|
|
|
|
export const USER_ENCRYPTED_ORGANIZATION_KEYS = UserKeyDefinition.record<
|
|
EncryptedOrganizationKeyData,
|
|
OrganizationId
|
|
>(CRYPTO_DISK, "organizationKeys", {
|
|
deserializer: (obj) => obj,
|
|
clearOn: ["logout"],
|
|
});
|