Exception: MCP::Client::OAuth::Flow::InvalidGrantError
- Inherits:
-
AuthorizationError
- Object
- StandardError
- AuthorizationError
- MCP::Client::OAuth::Flow::InvalidGrantError
- Defined in:
- lib/mcp/client/oauth/flow.rb
Overview
Raised specifically when the token endpoint rejects a grant with ‘error: “invalid_grant”` (RFC 6749 §5.2). Callers use this to distinguish “the stored refresh token is dead, discard it” from transient failures (network, 5xx, other RFC 6749 error codes) that should leave the refresh token intact.