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

Struct AuthConfig

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

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