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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user