One-shot authorization-code and refresh token endpoint client.
Requests are form encoded, carry the exact resource indicator, never retry, and return explicit dispatch provenance. Provider bodies and authentication response headers are projected to closed results before returning.
Summary
Types
Functions
@spec exchange_code(PtcRunner.Kernel.MCPOAuth.Authority.t(), map(), map(), keyword()) :: {:ok, map()} | {:error, atom(), provenance()}
@spec refresh(PtcRunner.Kernel.MCPOAuth.Authority.t(), map(), map(), keyword()) :: {:ok, map()} | {:error, atom(), provenance()}