Skip to main content

LoginFailureReason

LoginFailureReason = "rejected" | "user_not_found" | "invalid_password"

Why password login attempt failed:

  • rejected: one of auth.beforeLoginAttempt hooks rejected the attempt, credentials were not checked
  • user_not_found: there is no user with such username
  • invalid_password: user exists, but password is wrong