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

Function AuthTokenWriteable

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

Source from the content-addressed store, hash-verified

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

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