fix: improve readability by formatting importKey options in hkdf function

This commit is contained in:
Francisco Pessano
2025-08-14 16:50:22 +00:00
committed by GitHub
parent b0a973e24c
commit 7bb958416e

View File

@@ -136,7 +136,9 @@ export async function hkdf(
const infoBytes = info.info ? new TextEncoder().encode(info.info) : new Uint8Array(0)
// Import the input key material
const importedKey = await subtle.importKey('raw', inputKeyMaterial as BufferSource, { name: 'HKDF' }, false, ['deriveBits'])
const importedKey = await subtle.importKey('raw', inputKeyMaterial as BufferSource, { name: 'HKDF' }, false, [
'deriveBits'
])
// Derive bits using HKDF
const derivedBits = await subtle.deriveBits(