(res *http.Response)
| 650 | } |
| 651 | |
| 652 | func (c *Config) TokenRevocationResponseOk(res *http.Response) bool { |
| 653 | // RFC spec on successful revocation returns 200, GitHub 204 |
| 654 | if c.Type == codersdk.EnhancedExternalAuthProviderGitHub.String() { |
| 655 | return res.StatusCode == http.StatusNoContent |
| 656 | } |
| 657 | return res.StatusCode == http.StatusOK |
| 658 | } |
| 659 | |
| 660 | type DeviceAuth struct { |
| 661 | // Config is provided for the http client method. |