I am trying to save a user to mongodb database using post request as follow, but I got the error bcrypt Error: data and hash arguments required .It\'s a pretty simple set up
Remove the arrow => in bcrypt.hash() . Use old fashioned method definition function() {}
=>
function() {}