From: Chris Duncan Date: Tue, 31 Mar 2026 10:28:48 +0000 (-0700) Subject: Update var name to reflect intent. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=5e4ec1309293b98bdf62dd8867404245bc136821;p=libnemo.git Update var name to reflect intent. --- diff --git a/src/lib/vault/passkey.ts b/src/lib/vault/passkey.ts index 90a70b8..254a3ce 100644 --- a/src/lib/vault/passkey.ts +++ b/src/lib/vault/passkey.ts @@ -17,7 +17,7 @@ export class Passkey { // Only unlocking should decrypt the vault; other sensitive actions should // throw if the vault is still locked and encrypted - const purpose: KeyUsage[] = action === 'unlock' ? ['decrypt'] : ['encrypt'] + const keyUsages: KeyUsage[] = action === 'unlock' ? ['decrypt'] : ['encrypt'] return crypto.subtle .importKey('raw', password, 'PBKDF2', false, ['deriveKey']) @@ -34,7 +34,7 @@ export class Passkey { length: 256 } return crypto.subtle - .deriveKey(derivationAlgorithm, derivationKey, derivedKeyType, false, purpose) + .deriveKey(derivationAlgorithm, derivationKey, derivedKeyType, false, keyUsages) }) .catch(err => { console.error(err)