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

Method ActiveTokenWithRefresh

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

Source from the content-addressed store, hash-verified

626type tinyConfig map[string]string
627
628func (c tinyConfig) ActiveTokenWithRefresh(host string) (auth.Credential, auth.RefreshStatus, error) {
629 return auth.Credential{Token: c[fmt.Sprintf("%s:%s", host, "oauth_token")]}, auth.RefreshStatusUnnecessary, nil
630}
631
632// HostForAPIHost resolves via an "api_host:<apiHost>" key holding the host that
633// configured it, mirroring the reverse lookup the real config performs.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected