You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: restore SdkError(ClientHttpAuthentication) for circuit-breaker case
The 401-after-re-auth case (circuit breaker trips) should throw a
distinct error from the normal 'token rejected' case:
- First 401 with no onUnauthorized → UnauthorizedError — caller
re-auths externally and reconnects
- Second 401 after onUnauthorized succeeded → SdkError with
ClientHttpAuthentication — server is misbehaving, don't blindly
retry, escalate
The previous commit collapsed these into UnauthorizedError, which
risks callers catching it, re-authing, and looping. Restored the
SdkError throw at all three 401 sites when _authRetryInFlight is
already set. Reverted migration doc changes — ClientHttpAuthentication
is not dead code.
0 commit comments