bcrypt hashing password nodejs
i keep getting this error “Invalid password” even if the password and email are correct which makes no sense pls help me to solve this problem i think that i am comparing a hashed password and a plain text password but i dont know how to solve it
Issue with `bcryptjs` Password Comparison in Node.js and React
I’m having issues with bcryptjs
while handling passwords in my application. Registering users works fine, but logging in using the same password is giving me errors. I have made sure that the password is correct, yet it still doesn’t match. It seems that bcryptjs
is not working for me as intended.