()
| 54 | } |
| 55 | |
| 56 | func (e *TokenError) Error() string { |
| 57 | return fmt.Sprintf("oauth: token endpoint returned %d: %s", e.StatusCode, e.Body) |
| 58 | } |
| 59 | |
| 60 | // IsPermanentError returns true for 4xx status codes that are not transient. |
| 61 | // 408 (Request Timeout) and 429 (Too Many Requests) are considered transient. |
no outgoing calls