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
| Response | Meaning |
|---|---|
401 INVALID_TOKEN | The bearer token is revoked or invalid |
403 INSUFFICIENT_SCOPE | The token lacks a scope, named in WWW-Authenticate |
429 with Retry-After | A 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_URLmust 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_SECRETstable: 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.