Error map

Unknown or invalid refresh token Auth0: invalid_grant — Unknown or invalid refresh token

Authentication · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

Unknown or invalid refresh token — Auth0: invalid_grant — Unknown or invalid refresh token (Authentication)Unknown or …invalid_grant — OAuth 2.0 Error: invalid_grant (Authentication)invalid_grantopaque access token — Auth0: access token is opaque (not a JWT) because no audience was requested (Authentication)opaque access tokenRefresh Token Not Found — Supabase: AuthApiError: Invalid Refresh Token: Refresh Token Not Found (Authentication)Refresh Token Not F…Callback URL mismatch — Auth0: Callback URL mismatch. The provided redirect_uri is not in the list of allowed callback URLs (Authentication)Callback URL mismat…Invalid state — Auth0: Invalid state — login callback state does not match (Authentication)Invalid stateRefresh Token has been revoked — AWS Cognito: NotAuthorizedException: Refresh Token has been revoked (Authentication)Refresh Token has b…login_required — Auth0: login_required — Login required (silent authentication failed) (Authentication)login_requiredUntrustedHost — Auth.js: UntrustedHost: Host must be trusted (Authentication)UntrustedHostAADSTS700016 — Azure AD (Entra ID): AADSTS700016 Application not found in the directory (Azure)AADSTS700016400 — HTTP 400 Bad Request (HTTP)400401 — HTTP 401 Unauthorized (HTTP)401TokenExpiredError — JWT Expired / Invalid Token (Authentication)TokenExpiredErrorinvalid_token — invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed) (Authentication)invalid_tokenjwt must be provided — JsonWebTokenError: jwt must be provided (Authentication)jwt must be providedInvalid login credentials — Supabase Auth: AuthApiError: Invalid login credentials (Authentication)Invalid login crede…Email not confirmed — Supabase Auth: AuthApiError: Email not confirmed (Authentication)Email not confirmedJWT expired — Supabase: JWT expired (PGRST301) (Authentication)JWT expiredredirect_uri_mismatch — OAuth Error: redirect_uri_mismatch (Authentication)redirect_uri_mismat…redirect_uri must be a Login redirect URI — Okta: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings (Authentication)redirect_uri must b…E0000004 — Okta: E0000004 Authentication failed (Authentication)E0000004OptimisticLockException — Optimistic lock conflict: OptimisticLockException / StaleObjectStateException / version mismatch (API)OptimisticLockExcep…unexpected_state — API Error: Invalid state transition — operation not allowed in the resource’s current state (API)unexpected_statestate mismatch — OAuth callback error: state mismatch / Unable to verify authorization request state / State cookie was missing (Authentication)state mismatchNotAuthorizedException — AWS Cognito: NotAuthorizedException: Incorrect username or password (Authentication)NotAuthorizedExcept…Unable to verify secret hash for client — AWS Cognito: NotAuthorizedException: Unable to verify secret hash for client x (Authentication)Unable to verify se…CodeMismatchException — AWS Cognito: CodeMismatchException: Invalid verification code provided, please try again (Authentication)CodeMismatchExcepti…login_required — OIDC Error: login_required / interaction_required / consent_required (silent authentication failed) (Authentication)login_requiredinvalid_client — Sign in with Apple: invalid_client (Authentication)invalid_clientCLIENT_FETCH_ERROR — NextAuth: [next-auth][error][CLIENT_FETCH_ERROR] Unexpected token < in JSON (Authentication)CLIENT_FETCH_ERRORNO_SECRET — NextAuth / Auth.js: [next-auth][error][NO_SECRET] Please define a `secret` in production / MissingSecret (Authentication)NO_SECRETaccount locked — Your account has been locked due to too many failed login attempts (Authentication)account locked

Directly related (8)

Two steps away (23)

AADSTS700016Azure

Azure AD (Entra ID): AADSTS700016 Application not found in the directory

The client ID in your sign-in request doesn’t exist in the tenant you’re authenticating against.

400HTTP

HTTP 400 Bad Request

The server could not understand the request because its syntax, headers or body are malformed or invalid.

401HTTP

HTTP 401 Unauthorized

The request has no valid authentication credentials — you need to log in or send a valid token.

TokenExpiredErrorAuthentication

JWT Expired / Invalid Token

The JSON Web Token sent with the request is expired, malformed or signed with a different key, so the API rejects it (usually wit…

invalid_tokenAuthentication

invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed)

A token was sent but the server couldn’t verify it — bad signature, malformed, revoked, or issued for another audience or environ…

jwt must be providedAuthentication

JsonWebTokenError: jwt must be provided

jwt.verify() was called with an empty value — the token never reached the server code.

Invalid login credentialsAuthentication

Supabase Auth: AuthApiError: Invalid login credentials

Supabase rejected the email/password — wrong password, no such user, or the user signed up via OAuth/magic link without a passwor…

Email not confirmedAuthentication

Supabase Auth: AuthApiError: Email not confirmed

The account exists, but email confirmation is enabled and the user hasn’t clicked the confirmation link.

JWT expiredAuthentication

Supabase: JWT expired (PGRST301)

The access token sent to the Supabase REST API has expired.

redirect_uri_mismatchAuthentication

OAuth Error: redirect_uri_mismatch

The redirect URI in your OAuth request doesn’t exactly match one registered for the client in the provider’s console.

redirect_uri must be a Login redirect URIAuthentication

Okta: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings

Okta rejected the login because the redirect URI is not registered in the application's sign-in redirect URIs.

E0000004Authentication

Okta: E0000004 Authentication failed

Okta could not authenticate the username and password for the primary authentication API.

OptimisticLockExceptionAPI

Optimistic lock conflict: OptimisticLockException / StaleObjectStateException / version mismatch

Someone else changed the record after you read it, so your update — based on an old version — was rejected to avoid overwriting t…

unexpected_stateAPI

API Error: Invalid state transition — operation not allowed in the resource’s current state

The request is valid, but the object is in a state where this action isn’t allowed — cancelling something already completed, refu…

state mismatchAuthentication

OAuth callback error: state mismatch / Unable to verify authorization request state / State cookie was missing

The state value returned to the callback doesn’t match what the app stored before redirecting — the CSRF protection for OAuth fai…

NotAuthorizedExceptionAuthentication

AWS Cognito: NotAuthorizedException: Incorrect username or password

Cognito rejected the sign-in — wrong credentials, a disabled user, an auth flow not enabled on the app client, or an expired refr…

Unable to verify secret hash for clientAuthentication

AWS Cognito: NotAuthorizedException: Unable to verify secret hash for client x

The app client has a client secret, so every request needs a SECRET_HASH — and it’s missing or computed wrongly.

CodeMismatchExceptionAuthentication

AWS Cognito: CodeMismatchException: Invalid verification code provided, please try again

The confirmation or MFA code entered does not match what Cognito sent.

login_requiredAuthentication

OIDC Error: login_required / interaction_required / consent_required (silent authentication failed)

A silent sign-in (prompt=none, iframe or refresh) couldn’t complete because the user must interact — no session, consent needed,…

invalid_clientAuthentication

Sign in with Apple: invalid_client

Apple rejected the client secret JWT or the Services ID configuration.

CLIENT_FETCH_ERRORAuthentication

NextAuth: [next-auth][error][CLIENT_FETCH_ERROR] Unexpected token < in JSON

The client could not fetch `/api/auth/session` as JSON, often because NEXTAUTH_URL is wrong or the route returns HTML.

NO_SECRETAuthentication

NextAuth / Auth.js: [next-auth][error][NO_SECRET] Please define a `secret` in production / MissingSecret

Auth.js needs a secret (NEXTAUTH_SECRET / AUTH_SECRET) in production to sign and encrypt tokens/cookies.

account lockedAuthentication

Your account has been locked due to too many failed login attempts

The login system locked the account after repeated failures.