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

Method ActiveTokenWithRefresh

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

Source from the content-addressed store, hash-verified

150}
151
152func (c cfg) ActiveTokenWithRefresh(hostname string) (gh.Credential, gh.RefreshStatus, error) {
153 return gh.Credential{Token: c.token}, gh.RefreshStatusInapplicable, nil
154}
155
156// HostForAPIHost never resolves, because the token here is supplied directly by
157// 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