OAuth credential refresh boundary for the OpenAI Codex provider.
ReqLLM returns refreshed OpenAI credentials as provider JSON with string keys. This module is the only place in LLMProxy that parses that external shape and converts it into typed data and atom-keyed storage updates.
Summary
Types
Functions
@spec refresh_if_needed(LLMProxy.Schemas.ProviderToken.t(), refresh_fun()) :: {:ok, LLMProxy.Schemas.ProviderToken.t()} | {:error, term()}