MCPcopy
hub / github.com/cli/cli / AuthConfig

Struct AuthConfig

internal/config/config.go:227–232  ·  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

225// with knowledge on how to access encrypted storage when neccesarry.
226// Behavior is scoped to authentication specific tasks.
227type AuthConfig struct {
228 cfg *ghConfig.Config
229 defaultHostOverride func() (string, string)
230 hostsOverride func() []string
231 tokenOverride func(string) (string, string)
232}
233
234// ActiveToken will retrieve the active auth token for the given hostname,
235// searching environment variables, plain text config, and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected