0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-04-14 23:11:31 -05:00

fix(core): fix lint error

fix lint error
This commit is contained in:
simeng-li 2025-04-07 17:55:51 +08:00
parent 42efe20946
commit 1770f09af5
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075

View file

@ -8,6 +8,7 @@ import { argon2i } from 'hash-wasm';
* This method follows the recommended configuration settings from the [OWASP Password Storage Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Password_Storage_Cheat_Sheet.md?utm_source=chatgpt.com#argon2id),
* balancing CPU and memory usage while providing a high level of security.
*/
// eslint-disable-next-line import/no-unused-modules -- dynamic import by node worker
export default async function argon2iEncrypt(password: string): Promise<string> {
return argon2i({
password,