We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 091d550 commit 5f86481Copy full SHA for 5f86481
auth/oauth.go
@@ -69,7 +69,7 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) {
69
}
70
71
72
- if resp.StatusCode == http.StatusUnauthorized || resp.StatusCode == http.StatusPaymentRequired ||
+ if resp.StatusCode == http.StatusUnauthorized || resp.StatusCode == http.StatusForbidden ||
73
resp.StatusCode == http.StatusNotFound || resp.StatusCode == http.StatusUnprocessableEntity ||
74
(resp.StatusCode == http.StatusBadRequest && values != nil && values.Get("error") == "unauthorized_client") {
75
// OAuth Device Flow is not available; continue with OAuth browser flow with a
0 commit comments