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