Relative Content

Tag Archive for reactjsmongodbauthenticationbcryptreact-fullstack

Please help – bcrypt compare

So when I hash the password and save it in database and then compare it in with the provided password that is exactly the same as the password when I hashed it, I get FALSE. Can somebody tell what I’m doing wrong here? I just don’t see whats the issue. Thanks in advance
ERROR :-
{
“error”: “Please try to login with correct credentials”
}