Compare passwords BcryptJS
问题 So I'm trying to build a very basic user login. I'm trying to create a user, then login with those credentials and get back a JSON Web Token. Where I'm stuck is trying to compare the passwords then send a response. Steps: Create User: enter email and password salt/hash user password store user into database return success Login find user by request email value if found compare passwords passwords good send JSON Web Token User Model email:{ type: String, required: true, unique: true },