MCPcopy
hub / github.com/cli/cli / AuthTokenWriteable

Function AuthTokenWriteable

pkg/cmd/auth/shared/writeable.go:15–18  ·  view source on GitHub ↗
(authCfg gh.AuthConfig, hostname string)

Source from the content-addressed store, hash-verified

13}
14
15func AuthTokenWriteable(authCfg gh.AuthConfig, hostname string) (string, bool) {
16 token, src := authCfg.ActiveToken(hostname)
17 return src, (token == "" || !strings.HasSuffix(src, "_TOKEN"))
18}

Callers 4

switchRunFunction · 0.92
refreshRunFunction · 0.92
loginRunFunction · 0.92
logoutRunFunction · 0.92

Calls 1

ActiveTokenMethod · 0.65

Tested by

no test coverage detected