HasActiveToken returns true when a token for the hostname is present.
(hostname string)
| 366 | |
| 367 | // HasActiveToken returns true when a token for the hostname is present. |
| 368 | func (c *AuthConfig) HasActiveToken(hostname string) bool { |
| 369 | return c.ActiveToken(hostname).Token != "" |
| 370 | } |
| 371 | |
| 372 | // HasEnvToken returns true when a token has been specified in an |
| 373 | // environment variable, else returns false. |
nothing calls this directly
no test coverage detected