

LiteLLM 1.112.1 changes how its MCP OAuth path handles concurrent token refreshes and upstream failures. The December 2 release notes describe users getting stuck after overlapping refreshes, provider outages or an unusable refresh grant. The fix concerns credential lifecycle and error handling, not a new model capability.
Concurrent callers need to share a result
The merged change is an ancestor of the release tag. In the tagged Redis coordinator, the worker performing a refresh can publish an encoded error outcome tied to that particular lock generation. Waiting workers look for that result before falling back to reading the credential store.
The generation matters: an outcome from a later refresh should not be mistaken for the result of the operation a caller was waiting on. If the distributed lock backend fails, the code falls back to coordination within the worker, where concurrent callers share one in-flight task. That is not a cross-replica coordination guarantee during a Redis failure.
An outage is different from an invalid grant
The authorization-code refresher classifies throttling, server failures and temporary-unavailability responses as retryable upstream problems. Certain rejected grants instead produce a sign-in-again outcome and can trigger revocation of the dead stored grant. Other client or configuration errors receive a misconfiguration result.
This separation avoids treating every failed refresh as the same instruction to the user. It also avoids claiming that retrying can repair credentials the provider has actually invalidated. A deployment still depends on its identity provider, persistence layer and configuration.
Our analysis
Authentication failures often surface far from their cause: an agent appears unable to use a tool while the underlying problem is a stale refresh result or an outage mistaken for expired authorization. Sharing a typed outcome gives the surrounding application a better chance to present the right recovery step.
The useful verification questions are concrete: do waiting requests observe the same failure, does a temporary outage preserve a usable grant, and can a user reconnect after a genuinely dead one? The patch includes upstream test additions, but we did not execute them or connect an OAuth account. No credentials were accessed or changed.
The reviewed files are outside LiteLLM's separately licensed enterprise directory and fall under its MIT core license. That does not extend the same terms to every feature in the repository. The linked project profile preserves this distinction, and this report makes no claim that our services were affected or have been upgraded.
EXPLORE THE SOURCE
Projects in this story
GitHub repositories
- BerriAI/litellm ↗View project details
Original reporting from primary sources; source review is not an installation, inference run or independent benchmark.





