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

Struct AuthConfig

internal/config/config.go:229–234  ·  view source on GitHub ↗

AuthConfig is used for interacting with some persistent configuration for gh, with knowledge on how to access encrypted storage when neccesarry. Behavior is scoped to authentication specific tasks.

Source from the content-addressed store, hash-verified

227// with knowledge on how to access encrypted storage when neccesarry.
228// Behavior is scoped to authentication specific tasks.
229type AuthConfig struct {
230 cfg *ghConfig.Config
231 defaultHostOverride func() (string, string)
232 hostsOverride func() []string
233 tokenOverride func(string) (string, string)
234}
235
236// ActiveTokenType reports what kind of credential the active token is, so a
237// caller that only needs to know that can avoid handling the token.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected