Guides

OAuth 2.1 and PKCE

Authorize public applications and MCP clients without asking users to copy credentials.

Reviewed November 3, 2026·AI-readable

Discovery

http
GET https://app.trovv.io/.well-known/oauth-authorization-server
GET https://app.trovv.io/.well-known/oauth-protected-resource

Authorization request

  • Generate a 43–128 character verifier.
  • Create the base64url SHA-256 challenge.
  • Use code_challenge_method=S256.
  • Use an exactly registered redirect URI.
  • Use resource=https://app.trovv.io.
  • Generate and validate state in the client.

Authorization 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

ArtifactLifetime
Authorization code10 minutes; one use
Access token1 hour
Refresh token30 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?