From 062c784bd080ca7d942da7625807cf3d7a780d1b Mon Sep 17 00:00:00 2001 From: mmelko Date: Tue, 23 Apr 2024 13:57:23 +0200 Subject: [PATCH] fix(util/crypto): type fingerprint to string --- packages/hawtio/src/util/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hawtio/src/util/crypto.ts b/packages/hawtio/src/util/crypto.ts index 4e4d82867..14afb2821 100644 --- a/packages/hawtio/src/util/crypto.ts +++ b/packages/hawtio/src/util/crypto.ts @@ -2,7 +2,7 @@ import { getFingerprint } from '@thumbmarkjs/thumbmarkjs' export async function generateKey(salt: ArrayBufferView): Promise { const fingerprint = await getFingerprint() - const data = new TextEncoder().encode(fingerprint) + const data = new TextEncoder().encode(fingerprint as string) const key = await window.crypto.subtle.importKey('raw', data, { name: 'PBKDF2' }, false, ['deriveKey']) const algorithm = { name: 'PBKDF2',