HasActiveToken returns true when a token for the hostname is present.
(hostname string)
| 390 | |
| 391 | // HasActiveToken returns true when a token for the hostname is present. |
| 392 | func (c *AuthConfig) HasActiveToken(hostname string) bool { |
| 393 | return c.ActiveToken(hostname).Token != "" |
| 394 | } |
| 395 | |
| 396 | // HasEnvToken returns true when a token has been specified in an |
| 397 | // environment variable, else returns false. |
nothing calls this directly
no test coverage detected