diff --git a/theme/src/node/utils/encrypt.ts b/theme/src/node/utils/encrypt.ts index fdd15bb9..6ee909e4 100644 --- a/theme/src/node/utils/encrypt.ts +++ b/theme/src/node/utils/encrypt.ts @@ -4,7 +4,7 @@ import { bcrypt } from 'hash-wasm' export async function genEncrypt(password: string): Promise { const salt = new Uint8Array(16) crypto.getRandomValues(salt) - return bcrypt({ + return await bcrypt({ password, salt, costFactor: 11,