Rhea Key SDK

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.

The button

The button shows the message to the person and sends the code in the rhea-error event.

CodeThe person seesFix
SIGNIN_FAILED right after the clickSign-in failedThe site is not registered, or its domain proof is missing. Register the exact address on rheakey.com/apps.
CHALLENGE_UNAVAILABLEThis site could not start sign-inPOST /rhea-challenge is missing or did not return nonce, issuedAt and expirationTime.
CHALLENGE_REQUIREDThis site could not start sign-inchallenge="client" is used outside localhost. Remove it and add /rhea-challenge.
VERIFY_FAILEDThis site could not confirm sign-inPOST /rhea-verify answered non-2xx or took longer than 15 seconds.
RELAY_UNAVAILABLECould not reach Rhea Key, try againA network problem. Retry.
POPUP_BLOCKEDAllow pop-ups to sign inStart sign-in from a click, not on page load.
WINDOW_CLOSED, TIMEOUT, DENIED, EXPIREDSign-in window closed, timed out, cancelled or expiredNothing to fix. The person can try again.
IN_PROGRESSSign-in is already openWait for the first attempt to finish.

OpenID Connect and @rheakey/sdk

CodeWhat it meansNext
MISSING_CLIENT_IDThe app has not been given its client id.Register the app and set the id.
DISCOVERY_FAILEDThe issuer metadata could not be loaded.Check discovery and try again.
POPUP_BLOCKEDThe approval window could not open.Allow pop-ups, or use the redirect flow, or QR.
WINDOW_CLOSEDThe approval window was closed.Start sign-in again.
TIMEOUT / SIGN_IN_EXPIREDThe attempt ran out of time.Start sign-in again.
ACCESS_DENIED / USER_CANCELLEDThe person declined or cancelled.Offer a clear retry.
SIGN_IN_IN_PROGRESSAnother attempt is already open on this client.Wait or cancel the first attempt.
SIGN_IN_RESTART_REQUIREDThe one-use code can no longer be reused.Start a fresh sign-in. Do not replay the callback.
CALLBACK_MISMATCH / STATE_MISMATCH / NONCE_MISMATCHThe return did not match the attempt this page started.Start again from this page, with the same redirect address.
TOKEN_EXCHANGE_FAILEDThe 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_ALGORITHMThe token could not be verified against the published keys.Refuse the session. Check you are using issuer https://rheakey.com.
TOKEN_EXPIRED / INVALID_TIMESTAMPThe token is outside its valid time window.Refuse and start sign-in again.
ASSURANCE_NOT_META requested hardware profile is not available.Do not require hardware assurance today.
ORIGIN_NOT_REGISTEREDThis https origin has not completed domain proof.Publish the proof and register the exact redirect address.
invalid_redirect_uriThe redirect address is not an exact, allowed match.Register the exact string the app will use.