ActiveToken retrieves the active credential for the given hostname, searching environment variables, general configuration, and finally encrypted storage. It returns the last stored token as-is, including the current access token of a refreshable credential, and never contacts the token endpoint to
(hostname string)
| 238 | // access token of a refreshable credential, and never contacts the token endpoint to refresh it. A caller that |
| 239 | // needs a token valid for API calls should use ActiveTokenWithRefresh instead. |
| 240 | ActiveToken(hostname string) Credential |
| 241 | |
| 242 | // ActiveTokenType reports what kind of credential the active token for the |
| 243 | // hostname is, so a caller can decide whether it will do without handling |
no outgoing calls