Skip to main content

Module oauth

Module oauth 

Source
Expand description

OAuth 2.0 authentication flow for various providers.

Implements device code flow and authorization code flow for:

  • Anthropic (Claude Pro/Max)
  • OpenAI
  • GitHub Copilot
  • OpenRouter
  • And more…

Structs§

DeviceCodeResponse
Device code flow response
OAuthClient
OAuth client for handling authentication flows
OAuthConfig
OAuth client configuration
OAuthToken
OAuth token information
OAuthTokenStore
OAuth token storage

Enums§

OAuthError
OAuthProvider
OAuth provider types