I\'m trying to use the bcrypt-nodejs package with my sequelize model and was tring to follow a tutorial to incorporate the hashing into my model, but I\'m getti
bcrypt-nodejs
Other alternative: Use hook and bcrypt async mode
User.beforeCreate((user, options) => { return bcrypt.hash(user.password, 10) .then(hash => { user.password = hash; }) .catch(err => { throw new Error(); }); });