class

Crabbit::OAuth2TokenProvider

Inherits Reference < Object

Provider interface for retrieving OAuth 2 access tokens.

Implement this type for non-standard grants, external credential agents, or pre-existing token caches. Implementations may block the calling fiber and should raise OAuth2Error with actionable context on failure.

Instance methods

request

Retrieves a non-expired access token.

Source