1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-28 14:13:22 +00:00

[PM-24079] Switch EncryptedString to SDK type (#15796)

* Update usages of sdk to type-safe SDK type

* Update sdk version

* Update to "toSdk"
This commit is contained in:
Bernd Schoolmann
2025-07-30 23:49:50 +02:00
committed by GitHub
parent 0ebd4a841b
commit 021d275c43
18 changed files with 99 additions and 87 deletions

View File

@@ -22,6 +22,7 @@ import {
ClientSettings,
DeviceType as SdkDeviceType,
TokenProvider,
UnsignedSharedKey,
} from "@bitwarden/sdk-internal";
import { EncryptedOrganizationKeyData } from "../../../admin-console/models/data/encrypted-organization-key.data";
@@ -237,7 +238,7 @@ export class DefaultSdkService implements SdkService {
organizationKeys: new Map(
Object.entries(orgKeys ?? {})
.filter(([_, v]) => v.type === "organization")
.map(([k, v]) => [k, v.key]),
.map(([k, v]) => [k, v.key as UnsignedSharedKey]),
),
});
}