const bcrypt = require('bcryptjs'); const hashPassword = async password => await bcrypt.hash(password, 10); const validatePassword = async (password, hash) => await bcrypt.compare(password, hash);