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.
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
oruserinfo.request
method to make sure it correctly fetches the user's profile. - The
signIn
orjwt
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'sauthorize
method. - The
signIn
orjwt
callback methods threw an uncaught error: Check the callback method implementations.
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.