From bb849e56cfba33845d8b7d97ac3e2abcec457e98 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Fri, 5 Jan 2024 01:26:52 +0900 Subject: [PATCH] change param name --- packages/lucia/src/crypto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lucia/src/crypto.ts b/packages/lucia/src/crypto.ts index f4d698724..a931753da 100644 --- a/packages/lucia/src/crypto.ts +++ b/packages/lucia/src/crypto.ts @@ -6,8 +6,8 @@ import { alphabet, generateRandomString } from "oslo/random"; import type { PasswordHashingAlgorithm } from "oslo/password"; export type { PasswordHashingAlgorithm } from "oslo/password"; -async function generateScryptKey(s: string, salt: string, blockSize = 16): Promise { - const encodedData = new TextEncoder().encode(s); +async function generateScryptKey(data: string, salt: string, blockSize = 16): Promise { + const encodedData = new TextEncoder().encode(data); const encodedSalt = new TextEncoder().encode(salt); const keyUint8Array = await scrypt(encodedData, encodedSalt, { N: 16384,