MCPcopy
hub / github.com/cli/cli / HasEnvToken

Method HasEnvToken

internal/gh/gh.go:114–114  ·  view source on GitHub ↗

HasEnvToken returns true when a token has been specified in an environment variable, else returns false.

()

Source from the content-addressed store, hash-verified

112
113 // HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
114 HasEnvToken() bool
115
116 // TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
117 TokenFromKeyring(hostname string) (token string, err error)

Callers 5

CheckAuthFunction · 0.65
ResolverMethod · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls