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.
| 225 | // with knowledge on how to access encrypted storage when neccesarry. |
| 226 | // Behavior is scoped to authentication specific tasks. |
| 227 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected