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

Method ActiveTokenType

internal/gh/gh.go:149–149  ·  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

147 // hostname is, so a caller can decide whether it will do without handling
148 // the token itself.
149 ActiveTokenType(hostname string) TokenType
150
151 // HasEnvToken returns true when a token has been specified in an environment variable, else returns false.
152 HasEnvToken() bool

Callers 6

createRunFunction · 0.65
editRunFunction · 0.65
CommentableRunFunction · 0.65
createRunFunction · 0.65
editRunFunction · 0.65
TestActiveTokenTypeFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 1

TestActiveTokenTypeFunction · 0.52