Checking and updating passwords with passport-local and bcrypt in node.js
So bcrypt.compare
is complaining that one of the arguments, either data
or hash
are missing. So that implies perhaps this.password
is returning null
or undefined
. Check your database record for that user and be sure it has a valid hash stored.