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

Method ActiveToken

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

Source from the content-addressed store, hash-verified

703type legacyConfig map[string]string
704
705func (c legacyConfig) ActiveToken(host string) (string, string) {
706 return c[fmt.Sprintf("%s:%s", host, "oauth_token")], "oauth_token"
707}
708
709func (c legacyConfig) HostForAPIHost(apiHost string) (string, bool) {
710 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