MCPcopy Create free account
hub / github.com/cli/cli / ActiveToken

Method ActiveToken

api/http_client_test.go:644–646  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

642type legacyConfig map[string]string
643
644func (c legacyConfig) ActiveToken(host string) (string, string) {
645 return c[fmt.Sprintf("%s:%s", host, "oauth_token")], "oauth_token"
646}
647
648func (c legacyConfig) HostForAPIHost(apiHost string) (string, bool) {
649 host, ok := c[fmt.Sprintf("%s:%s", "api_host", apiHost)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected