im having trouble with the comparePassword function,
i try to authenticate via Post and I get a error
Im using the latest npm package
module.exports.comparePassword = function(candidatePassword, hash, callback){ bcrypt.compare(candidatePassword, hash, (err, isMatch) => { if(err) throw err; callback(null, isMatch); }); }