HasActiveToken returns true when a token for the hostname is present.
(hostname string)
| 261 | |
| 262 | // HasActiveToken returns true when a token for the hostname is present. |
| 263 | func (c *AuthConfig) HasActiveToken(hostname string) bool { |
| 264 | token, _ := c.ActiveToken(hostname) |
| 265 | return token != "" |
| 266 | } |
| 267 | |
| 268 | // HasEnvToken returns true when a token has been specified in an |
| 269 | // environment variable, else returns false. |
nothing calls this directly
no test coverage detected