Skip to main content

Module: errors

Classes​

AccountNotLinked​

β€’ AccountNotLinked: Object

Todo

Thrown when an Email address is already associated with an account but the user is trying an OAuth account that is not linked to it.


AdapterError​

β€’ AdapterError: Object

Todo

One of the database Adapter methods failed.


AuthorizedCallbackError​

β€’ AuthorizedCallbackError: Object

Todo


CallbackRouteError​

β€’ CallbackRouteError: Object

There was an error while trying to finish up authenticating the user. Depending on the type of provider, this could be for multiple reasons.

tip

Check out [auth][details] in the error message to know which provider failed.

Example

[auth][details]: { "provider": "github" }

For an OAuth provider, possible causes are:

  • The user denied access to the application
  • There was an error parsing the OAuth Profile: Check out the provider's profile or userinfo.request method to make sure it correctly fetches the user's profile.
  • The signIn or jwt callback methods threw an uncaught error: Check the callback method implementations.

For an Email provider, possible causes are:

  • The provided email/token combination was invalid/missing: Check if the provider's sendVerificationRequest method correctly sends the email.
  • The provided email/token combination has expired: Ask the user to log in again.
  • There was an error with the database: Check the database logs.

For a Credentials provider, possible causes are:

  • The authorize method threw an uncaught error: Check the provider's authorize method.
  • The signIn or jwt callback methods threw an uncaught error: Check the callback method implementations.
tip

Check out [auth][cause] in the error message for more details. It will show the original stack trace.


ErrorPageLoop​

β€’ ErrorPageLoop: Object

Todo


EventError​

β€’ EventError: Object

Todo


InvalidCallbackUrl​

β€’ InvalidCallbackUrl: Object

Todo


InvalidEndpoints​

β€’ InvalidEndpoints: Object

Todo


InvalidState​

β€’ InvalidState: Object

Todo


JWTSessionError​

β€’ JWTSessionError: Object

Todo


MissingAPIRoute​

β€’ MissingAPIRoute: Object

Todo


MissingAdapter​

β€’ MissingAdapter: Object

Todo


MissingAdapterMethods​

β€’ MissingAdapterMethods: Object

Todo


MissingAuthorize​

β€’ MissingAuthorize: Object

Todo


MissingSecret​

β€’ MissingSecret: Object

Todo


OAuthCallbackError​

β€’ OAuthCallbackError: Object

Todo


OAuthCreateUserError​

β€’ OAuthCreateUserError: Object

Todo


OAuthProfileParseError​

β€’ OAuthProfileParseError: Object

Todo


OAuthSignInError​

β€’ OAuthSignInError: Object

Todo


SessionTokenError​

β€’ SessionTokenError: Object

Todo


SignInError​

β€’ SignInError: Object

Todo


SignOutError​

β€’ SignOutError: Object

Todo


UnknownAction​

β€’ UnknownAction: Object

Todo


UnsupportedStrategy​

β€’ UnsupportedStrategy: Object

Todo


UntrustedHost​

β€’ UntrustedHost: Object

Todo


Verification​

β€’ Verification: Object

The user's email/token combination was invalid. This could be because the email/token combination was not found in the database, or because it token has expired. Ask the user to log in again.