diff --git a/docs/essential/best-practice.md b/docs/essential/best-practice.md index 9e32090d..78190001 100644 --- a/docs/essential/best-practice.md +++ b/docs/essential/best-practice.md @@ -95,7 +95,7 @@ export abstract class Auth { WHERE username = ${username} LIMIT 1` - if (await Bun.password.verify(password, user.password)) + if (!await Bun.password.verify(password, user.password)) // You can throw an HTTP error directly throw status( 400,