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

Method ActiveTokenWithRefresh

internal/attachments/client_test.go:55–57  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

53type staticTokenConfig map[string]string
54
55func (c staticTokenConfig) ActiveTokenWithRefresh(host string) (gh.Credential, gh.RefreshStatus, error) {
56 return gh.Credential{Token: c[host]}, gh.RefreshStatusUnnecessary, nil
57}
58
59func (c staticTokenConfig) HostForAPIHost(apiHost string) (string, bool) {
60 return "", false

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected