diff --git a/auth.go b/auth.go index 0776565..42c1ad2 100644 --- a/auth.go +++ b/auth.go @@ -63,7 +63,7 @@ func (ghApp *GitHubApp) GetAccessToken() (string, error) { return "", err } defer resp.Body.Close() - if resp.StatusCode != 200 { + if resp.StatusCode >= 400 { return "", errors.New("couldn't get the token") }