Guides
OAuth 2.1 and PKCE
Authorize public applications and MCP clients without asking users to copy credentials.
Discovery
http
GET https://app.trovv.io/.well-known/oauth-authorization-server
GET https://app.trovv.io/.well-known/oauth-protected-resourceAuthorization URL
http
https://app.trovv.io/oauth/authorize?response_type=code&client_id=...&redirect_uri=...&scope=accounts%3Aread%20posts%3Aread&code_challenge=...&code_challenge_method=S256&resource=https%3A%2F%2Fapp.trovv.io&state=...Exchange the code
bash
curl -X POST https://app.trovv.io/oauth/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=authorization_code&client_id=...&code=...&redirect_uri=...&code_verifier=...'Lifetimes and rotation
| Artifact | Lifetime |
|---|---|
Authorization code | 10 minutes; one use |
Access token | 1 hour |
Refresh token | 30 days; rotates on every use |
Revoke
POST either an access or refresh token to /oauth/revoke. Revocation takes effect on subsequent requests. Users can also revoke an application in Settings → MCP & Connected Apps.
Was this page helpful?