fix(coderd/externalauth): also retry on 503 (#28218)

This commit is contained in:
Cian Johnston
2026-08-17 17:39:23 +01:00
committed by GitHub
parent 95328f1ead
commit aa80fa3550
+1 -1
View File
@@ -1588,7 +1588,7 @@ func isFailedRefresh(existingToken *oauth2.Token, err error) bool {
// previous 403 case caused token destruction on
// rate-limited refresh attempts.
return true
case http.StatusInternalServerError, http.StatusTooManyRequests:
case http.StatusInternalServerError, http.StatusTooManyRequests, http.StatusServiceUnavailable:
// These do not indicate a failed refresh, but could be a temporary issue.
return false
}