MCPcopy Index your code
hub / github.com/coder/coder / TokenRevocationResponseOk

Method TokenRevocationResponseOk

coderd/externalauth/externalauth.go:652–658  ·  view source on GitHub ↗
(res *http.Response)

Source from the content-addressed store, hash-verified

650}
651
652func (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
660type DeviceAuth struct {
661 // Config is provided for the http client method.

Callers 2

RevokeTokenMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by 1