Minimal OAuth 2.0 Client


[Up] [Top]

Documentation for package ‘tinyoauth’ version 0.1.0

Help Pages

oauth_authorize_url Build an authorization URL
oauth_bearer Authorization header value for a token
oauth_cache_path Default on-disk cache path for a client's token
oauth_client Define an OAuth 2.0 client
oauth_exchange_code Exchange an authorization code for a token
oauth_expired Is a token expired?
oauth_import_httr Import an httr '.httr-oauth' cache into tinyoauth
oauth_jwt_payload Decode a JWT payload
oauth_refresh Refresh an access token
oauth_request Make an authenticated request
oauth_token Get a valid token, using the cache and refreshing as needed
oauth_token_authcode Run the authorization-code flow end to end
oauth_token_client Fetch a token via the client-credentials grant
oauth_token_openai_codex Get a valid OpenAI Codex token, using the cache and refreshing as needed
openai_codex_account_id Extract the ChatGPT account id from a Codex token
openai_codex_client OAuth client for the OpenAI Codex (ChatGPT) device-login flow