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

Function refreshableServiceName

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

Source from the content-addressed store, hash-verified

632}
633
634func refreshableServiceName(hostname string) string {
635 // The "refreshable" marker is prefixed with an underscore, which is not a valid hostname character under the LDH
636 // rule, so the segment can never collide with the plain token service of a host literally named "refreshable".
637 return "gh:_refreshable:" + hostname
638}
639
640func isKeyNotFound(err error) bool {
641 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