We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd31007 commit cb4cc72Copy full SHA for cb4cc72
auth/oauth.go
@@ -69,7 +69,7 @@ func (oa *OAuthFlow) ObtainAccessToken() (accessToken string, err error) {
69
}
70
71
72
- if resp.StatusCode == 401 || resp.StatusCode == 403 || resp.StatusCode == 404 ||
+ if resp.StatusCode == 401 || resp.StatusCode == 403 || resp.StatusCode == 404 || resp.StatusCode == 422 ||
73
(resp.StatusCode == 400 && values != nil && values.Get("error") == "unauthorized_client") {
74
// OAuth Device Flow is not available; continue with OAuth browser flow with a
75
// local server endpoint as callback target
0 commit comments