Skip to main content

Module flow

Module flow 

Source
Expand description

The three sign-in flows and the token machinery they share.

Modules§

api_key
API-key sign-in: the simplest method, plus the small conveniences a CLI wants around it (env pickup and a cheap client-side shape check).
authorization_code
Browser authorization-code flow with PKCE and a loopback redirect.
device_code
Device-code flow (RFC 8628) for headless and remote sign-in.

Constants§

DEFAULT_USER_AGENT
The User-Agent the SDK presents on token requests. A CLI may override it via http_client_with_user_agent.

Functions§

http_client
Build the default HTTP client used for token requests.
http_client_with_user_agent
Build an HTTP client with a caller-chosen User-Agent (some providers key behaviour off it).
refresh
Exchange a refresh token for a fresh access token at token_url.