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

Method ActiveTokenWithRefresh

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

Source from the content-addressed store, hash-verified

687type tinyConfig map[string]string
688
689func (c tinyConfig) ActiveTokenWithRefresh(host string) (auth.Credential, auth.RefreshStatus, error) {
690 return auth.Credential{Token: c[fmt.Sprintf("%s:%s", host, "oauth_token")]}, auth.RefreshStatusUnnecessary, nil
691}
692
693// HostForAPIHost resolves via an "api_host:<apiHost>" key holding the host that
694// 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