Question : data and hash required
Answered by : yucky-yacare-yjpimxevn1mx
await User.findOne({email: req.body.email})//from which i can use user.password in the //bcrypt compare method
Source : https://stackoverflow.com/questions/42241113/bcrypt-error-data-and-hash-arguments-required | Last Update : Wed, 07 Jul 21