FastestMCP.Client.OAuth.Error exception (fastest_mcp v0.2.0)

Copy Markdown View Source

Redacted error returned by the MCP OAuth client coordinator.

The struct deliberately carries the stage and a sanitized reason only. Raw authorization codes, access tokens, refresh tokens, client secrets, and PKCE verifiers must never be placed in this value.

Summary

Types

stage()

@type stage() ::
  :configuration
  | :protected_resource_discovery
  | :authorization_server_discovery
  | :client_registration
  | :authorization
  | :token_exchange
  | :token_refresh

t()

@type t() :: %FastestMCP.Client.OAuth.Error{
  __exception__: term(),
  message: String.t(),
  reason: term(),
  stage: stage()
}