Skip to main content
The client API answers every refused token with the same 401 invalid_key and never says why. To find the reason, paste a fresh token into the token test. It gives the code below. See Linking people.

Token test refusals

Token test: verified, but not ready

access says whether the token would sign the person in now.

Setting up the issuer

  • Turning it on is refused. The last key check must be recent. A generic oidc issuer also needs a token test that was verified at its current revision, at most 24 hours ago. Run Check keys again, run Test a token with a real ID token, then turn it on with the revision you read. See Clerk.
  • Check keys shows a problem. The key address did not answer as Lurk needs. See other providers. A set of more than 20 keys, a repeated kid or a private key in the set is refused whole.
  • Saving is refused for an address ending in .supabase.co or .clerk.accounts.dev as oidc. Use the supabase or clerk profile.
  • Saving is refused because the issuer is already trusted. Archive the old one first. See the limit in other providers.
  • A rename or other change is refused as stale. Read the issuer again and send the revision you read as expected_revision.
  • A key or an agent gets approval_required. Adding, turning on, pausing and archiving an issuer, mapping, and blocking are for an owner or admin in person.

Client API errors

A device does not see every receipt. For a mapped person it sees those from the binding on, and for a merged-away person those from the merge or the link, whichever is later. If a receipt is missing, see Linking people.