MCPcopy Create free account
hub / github.com/Astrian/Nagging-backend / hashPassword

Function hashPassword

func/users/createUser.js:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35const hashPassword = async password => {
36 return new Promise((res, rej) => {
37 bcrypt.hash(password, 10, (err, hash) => {
38 if (err) rej(err)
39 else res(hash)
40 })
41 })
42}
43
44async function assignUUID() {
45 let uuid = uuidv4()

Callers 1

createUser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected