Login

πŸ‘¨β€πŸ’Ό Let's verify the password now!
import { bcrypt } from '#app/utils/auth.server.ts'

const isValid = await bcrypt.compare(password, hash)
Please add some logic to the file to verify the user's password. You'll need to get the user's hash, and take care to not return the hash to the browser.
You can test this out by going to , choosing a random user, and trying to log in with their password (which is equal to their username). Or you can login as Kody:
  • username: kody
  • password: kodylovesyou
Make sure to test out the error case as well!
Since we haven't implemented logout yet, you may need to clear your cookies before you can test out the error case πŸ˜