Error map
UntrustedHost Auth.js: UntrustedHost: Host must be trusted
Authentication · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (7). 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.
Directly related (7)
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.
Sign in with Apple: invalid_client
Apple rejected the client secret JWT or the Services ID configuration.
Auth0: Callback URL mismatch. The provided redirect_uri is not in the list of allowed callback URLs
The redirect_uri in the login request is not listed in the Auth0 application's Allowed Callback URLs.
Auth0: Invalid state — login callback state does not match
The `state` returned to the app does not match the one the SPA stored before redirecting to Auth0.
Auth0: invalid_grant — Unknown or invalid refresh token
Auth0 does not recognise the refresh token, so it was revoked, expired, already rotated or issued for another client.
Your account has been locked due to too many failed login attempts
The login system locked the account after repeated failures.
Auth0: login_required — Login required (silent authentication failed)
A silent token request found no active Auth0 session, so the user must log in interactively.
Two steps away (20)
HTTP 413 Content Too Large (Request Entity Too Large)
The request body is bigger than the server is willing to accept — usually a file upload over the configured limit.
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.
Kubernetes: CreateContainerConfigError — secret / configmap not found
Kubernetes can’t build the container’s configuration — usually a referenced Secret, ConfigMap or key doesn’t exist in that namesp…
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…
OAuth 2.0 Error: invalid_client
The OAuth server couldn’t authenticate your application — wrong client ID/secret, wrong auth method, or the client doesn’t exist…
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…
Auth0: access token is opaque (not a JWT) because no audience was requested
The login returned a short opaque access token, not a JWT, because the request had no API `audience`.
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.
Okta: E0000004 Authentication failed
Okta could not authenticate the username and password for the primary authentication API.
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…
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…
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…
OAuth 2.0 Error: invalid_grant
The authorization code, refresh token or credentials sent to the token endpoint are invalid, expired, already used or were issued…
AWS Cognito: NotAuthorizedException: Refresh Token has been revoked
The Cognito refresh token was revoked by sign-out or admin action.
Supabase: AuthApiError: Invalid Refresh Token: Refresh Token Not Found
The stored refresh token is unknown or already used.
{"detail":"No active account found with the given credentials"}
Simple JWT's login endpoint did not find an active user matching the username and password.
Exception: Missing user_loader or request_loader (Flask-Login)
Flask-Login needs a function that turns a stored user id into a user object, and none is registered.
AADSTS7000215: Invalid client secret provided
The client secret sent to Entra ID is wrong — often the secret ID was used instead of the secret value, or it expired.
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,…
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.