1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-26 09:33:22 +00:00

fix: TypeScript 5.9 type compatibility fixes for admin-console-owned code (#19192)

Add explicit `as BufferSource` casts and `Uint8Array` wrapping to satisfy
stricter type checking in TypeScript 5.9. Non-functional changes.
This commit is contained in:
Bernd Schoolmann
2026-02-25 04:22:46 +01:00
committed by GitHub
parent da0005b01b
commit 8d0c4123a6

View File

@@ -81,7 +81,7 @@ export class OrganizationUserResetPasswordService implements UserKeyRotationKeyR
if (
!trustedPublicKeys.some(
(key) => Utils.fromBufferToHex(key) === Utils.fromBufferToHex(publicKey),
(key) => Utils.fromArrayToHex(key) === Utils.fromArrayToHex(publicKey),
)
) {
throw new Error("Untrusted public key");