mirror of
https://github.com/coder/coder.git
synced 2026-09-21 12:44:32 +08:00
fix(coderd/externalauth): also retry on 503 (#28218)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user