| 33 | } |
| 34 | |
| 35 | const 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 | |
| 44 | async function assignUUID() { |
| 45 | let uuid = uuidv4() |