diff --git a/packages/hawtio/src/util/crypto.ts b/packages/hawtio/src/util/crypto.ts index 4e4d8286..14afb282 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',