Skip to Content

Revocation and Failures

What ends an app's access, and the errors it sees.

Disconnect

Disconnect in Settings → Connected apps deletes the user's consent, refresh credentials and approved pending device codes for the app. Issued JWTs stop working immediately, because every request checks the current grant, account and client.

Reconnecting creates a new grant; it does not revive old tokens. Signing out of the browser does not disconnect an app with offline access.

Revoke

Submit refresh tokens to the discovered revocation endpoint. Access-token revocation there is unsupported; Disconnect revokes the whole grant.

Failures

ResponseMeaning
401 INVALID_TOKENThe bearer token is revoked or invalid
403 INSUFFICIENT_SCOPEThe token lacks a scope, named in WWW-Authenticate
429 with Retry-AfterA compute limit was reached

An attached cookie does not override either token error.

Browsers

OAuth does not enable general CORS or add extension origins to trusted origins. Browser extensions use their host permissions; server and native clients send bearer requests directly.

For instance operators

  • BASE_URL must be the address clients reach the instance at. It is compared exactly against the issuer and token audience, so after a change clients must rediscover the instance and reconnect.
  • Keep AUTH_SECRET stable: it protects account data, signing keys and authorization requests. No separate OAuth secret is needed.
  • The desktop app keeps its port across restarts, and moves only when another program has taken it.
  • The public API came with migration 0027_public_api. Back up the database, apply it through your normal upgrade, and update the web app and an external compute worker together.

On this page

Edit this page