Reference
Errors
Every SDK error has a machine-readable code. Show the person a short sentence, then the next step. These codes help you debug; they are not a complete catalogue of every failure a network can produce.
| Code | What it means | Next |
|---|---|---|
MISSING_CLIENT_ID | The app has not been given its client id. | Register the app and set the id. |
DISCOVERY_FAILED | The issuer metadata could not be loaded. | Check discovery and try again. |
POPUP_BLOCKED | The approval window could not open. | Allow pop-ups, or use the redirect flow, or QR. |
WINDOW_CLOSED | The approval window was closed. | Start sign-in again. |
TIMEOUT / SIGN_IN_EXPIRED | The attempt ran out of time. | Start sign-in again. |
ACCESS_DENIED / USER_CANCELLED | The person declined or cancelled. | Offer a clear retry. |
SIGN_IN_IN_PROGRESS | Another attempt is already open on this client. | Wait or cancel the first attempt. |
SIGN_IN_RESTART_REQUIRED | The one-use code can no longer be reused. | Start a fresh sign-in. Do not replay the callback. |
CALLBACK_MISMATCH / STATE_MISMATCH / NONCE_MISMATCH | The return did not match the attempt this page started. | Start again from this page, with the same redirect address. |
TOKEN_EXCHANGE_FAILED | The authorization code could not be exchanged. | Check the client secret or PKCE verifier, then retry with a new sign-in. |
BAD_SIGNATURE / UNKNOWN_SIGNING_KEY / UNSUPPORTED_ALGORITHM | The token could not be verified against the published keys. | Refuse the session. Check you are using issuer https://rheakey.com. |
TOKEN_EXPIRED / INVALID_TIMESTAMP | The token is outside its valid time window. | Refuse and start sign-in again. |
ASSURANCE_NOT_MET | A requested hardware profile is not available. | Do not require hardware assurance today. |
ORIGIN_NOT_REGISTERED | This https origin has not completed domain proof. | Publish the proof and register the exact redirect address. |
invalid_redirect_uri | The redirect address is not an exact, allowed match. | Register the exact string the app will use. |
