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.
| 227 | // with knowledge on how to access encrypted storage when neccesarry. |
| 228 | // Behavior is scoped to authentication specific tasks. |
| 229 | type AuthConfig struct { |
| 230 | cfg *ghConfig.Config |
| 231 | defaultHostOverride func() (string, string) |
| 232 | hostsOverride func() []string |
| 233 | tokenOverride func(string) (string, string) |
| 234 | } |
| 235 | |
| 236 | // ActiveTokenType reports what kind of credential the active token is, so a |
| 237 | // caller that only needs to know that can avoid handling the token. |
nothing calls this directly
no outgoing calls
no test coverage detected