I have a forum which is running Invision Community and I'm building an API using Express.JS and Prisma to query the database.
When I do a POST request with my username and password (all info sent are correct) and I extract the hashed password from the database to compare but I always get back false.
I do like this:
const isValid = await bcrypt.compare("Test123123", "$2y$10$IPu20eKbJ1I7WcsWnuSq1u9NlcYhVRgdUWSHoENNH2fguhca8K2py")
Any ideas on why I always get back false?