Error map
Unknown or invalid refresh token Auth0: invalid_grant — Unknown or invalid refresh token
Authentication · layer 4, Application & API
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.
Directly related (8)
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…
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`.
Supabase: AuthApiError: Invalid Refresh Token: Refresh Token Not Found
The stored refresh token is unknown or already used.
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.
AWS Cognito: NotAuthorizedException: Refresh Token has been revoked
The Cognito refresh token was revoked by sign-out or admin action.
Auth0: login_required — Login required (silent authentication failed)
A silent token request found no active Auth0 session, so the user must log in interactively.
Auth.js: UntrustedHost: Host must be trusted
Auth.js v5 refuses unknown hosts unless trusted.
Two steps away (23)
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.
HTTP 400 Bad Request
The server could not understand the request because its syntax, headers or body are malformed or invalid.
HTTP 401 Unauthorized
The request has no valid authentication credentials — you need to log in or send a valid token.
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_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…
JsonWebTokenError: jwt must be provided
jwt.verify() was called with an empty value — the token never reached the server code.
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…
Supabase Auth: AuthApiError: Email not confirmed
The account exists, but email confirmation is enabled and the user hasn’t clicked the confirmation link.
Supabase: JWT expired (PGRST301)
The access token sent to the Supabase REST API has expired.
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.
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…
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…
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.
AWS Cognito: CodeMismatchException: Invalid verification code provided, please try again
The confirmation or MFA code entered does not match what Cognito sent.
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,…
Sign in with Apple: invalid_client
Apple rejected the client secret JWT or the Services ID configuration.
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.
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.
Your account has been locked due to too many failed login attempts
The login system locked the account after repeated failures.