Skip to main content

Module client

Module client 

Source

Structs§

AuthExpired
Typed error surfaced when the API rejects the bearer token (401/403).
Client
Token-authenticated blocking REST client for CodingPlan endpoints.

Functions§

api_base_url
Return the CodingPlan REST API base URL, reading ATOMCODE_CODINGPLAN_API_BASE once at first call and caching the result for the process lifetime.
is_auth_expired
True iff err (or any error in its cause chain) is an AuthExpired. Centralised so the orchestrator and shell callers agree on what “stale token” looks like — anywhere we want to decide “rerun OAuth?” goes through here.