HasActiveToken returns true when a token for the hostname is present.
(hostname string)
| 275 | |
| 276 | // HasActiveToken returns true when a token for the hostname is present. |
| 277 | func (c *AuthConfig) HasActiveToken(hostname string) bool { |
| 278 | token, _ := c.ActiveToken(hostname) |
| 279 | return token != "" |
| 280 | } |
| 281 | |
| 282 | // HasEnvToken returns true when a token has been specified in an |
| 283 | // environment variable, else returns false. |
nothing calls this directly
no test coverage detected