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

Function refreshableServiceName

internal/config/refreshable.go:713–717  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

711}
712
713func refreshableServiceName(hostname string) string {
714 // The "refreshable" marker is prefixed with an underscore, which is not a valid hostname character under the LDH
715 // rule, so the segment can never collide with the plain token service of a host literally named "refreshable".
716 return "gh:_refreshable:" + hostname
717}
718
719func isKeyNotFound(err error) bool {
720 var keyNotFound *ghConfig.KeyNotFoundError

Callers 9

setRefreshableKeyringFunction · 0.85
TestRefreshableForUserFunction · 0.85
loginRefreshableMethod · 0.85
refreshableFromKeyringFunction · 0.85
logoutMethod · 0.85

Calls

no outgoing calls

Tested by 3

setRefreshableKeyringFunction · 0.68
TestRefreshableForUserFunction · 0.68