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

Struct AuthConfig

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

233// with knowledge on how to access encrypted storage when neccesarry.
234// Behavior is scoped to authentication specific tasks.
235type AuthConfig struct {
236 cfg *ghConfig.Config
237 defaultHostOverride func() (string, string)
238 hostsOverride func() []string
239 tokenOverride func(string) (string, string)
240}
241
242// ActiveTokenType reports what kind of credential the active token is, so a
243// 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