Closed Irtiza751 closed 2 years ago
I did a minimal example on my computer and it works fine. Do you mean that 'isMatch' returns false?
Yeah, it is returning false for some reason I don't know why, but then I recreated the project from scratch and install all dependencies through yarn
instead of npm
and it started working.
Anyways thank you so much for replying, it feels really good that the community around JavaScript is so responsive & helpful.
The above code is matching the hash password that is stored in the database with a plain text password but it always returns
false
. so I tried this & it's working, could anyone explain to me; why this code is working & the above one is not working?