MCPcopy Create free account
hub / github.com/LeChatErrant/API-template / hashPassword

Function hashPassword

src/utils/hash.ts:11–13  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

9 * @returns The hashed password
10 */
11export async function hashPassword(password: string) {
12 return bcrypt.hash(password, config.saltRounds);
13}
14
15/**
16 * Check if the given password match the given crypted password

Callers 3

seedAdminUserFunction · 0.90
signupFunction · 0.90
updateUserFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected