diff --git a/README.md b/README.md index ad6d2140..02a57045 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ This is also compatible with `async/await` async function checkUser(username, password) { //... fetch user from a db etc. - const match = await password.compare(password, user.passwordHash); + const match = await bcrypt.compare(password, user.passwordHash); if(match) { //login