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

Method ActiveTokenType

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

ActiveTokenType reports what kind of credential the active token for the hostname is, so a caller can decide whether it will do without handling the token itself.

(hostname string)

Source from the content-addressed store, hash-verified

243 // hostname is, so a caller can decide whether it will do without handling
244 // the token itself.
245 ActiveTokenType(hostname string) TokenType
246
247 // HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
248 HasEnvToken() bool

Callers 1

TestActiveTokenTypeFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 1

TestActiveTokenTypeFunction · 0.52