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

Function authTokenWriteable

pkg/cmd/auth/status/status.go:532–534  ·  view source on GitHub ↗
(src string)

Source from the content-addressed store, hash-verified

530}
531
532func authTokenWriteable(src string) bool {
533 return !strings.HasSuffix(src, "_TOKEN")
534}
535
536// resolveCredential returns the credential gh should present for the host and optional user (an empty username means the
537// active account), refreshing an expiring token unless noRefresh is set. Refresh is best effort: a failed

Callers 3

StringMethod · 0.85
statusRunFunction · 0.85
buildEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected