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

Method ActiveTokenWithRefresh

internal/authflow/flow.go:139–141  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

137}
138
139func (c cfg) ActiveTokenWithRefresh(hostname string) (gh.Credential, gh.RefreshStatus, error) {
140 return gh.Credential{Token: c.token}, gh.RefreshStatusInapplicable, nil
141}
142
143// HostForAPIHost never resolves, because the token here is supplied directly by
144// the login flow and is used for whatever host the request is aimed at.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected