---
descriptions:
  authentication_errors:
    code: A string constant that distinguishes the error type.
    message: A human-readable message describing the error.
    pending_authentication_token: >
      A token that should be used to complete the authentication with a
      corresponding method after this error occurs.
    email: The email of the authenticating user.
originalPath: >-
  .tmp-workos-clone/packages/docs/content/reference/authkit/authentication-errors/index.mdx
---

# Authentication errors

Integrating the authentication API directly requires handling error responses for email verification, MFA challenges, identity linking, and organization selection. One or more of these responses may be returned for an authentication attempt with any authentication method.

Hosted AuthKit handles authentication errors for you and may be a good choice if you prefer a simpler integration.
