text: const bcrypt = require('bcryptjs');
  let { genSalt, hash, compare } = bcrypt;
  
  const { promisify } = require('util');
  
  genSalt = promisify(genSalt);
  hash = promisify(hash);
  compare = promisify(compare);
  
  module.exports.compare = compare;
  module.exports.hash = plainTextPw => genSalt().then(salt => hash(plainTextPw, salt));
  