TokenForUserWithRefresh retrieves the credential for a specified user and hostname and, when it is refreshable and its access token is expiring, renews and persists it. It may return a non-empty credential with an error, such as when refreshing fails. The caller decides whether to use the returned c
(hostname, username string)
| 311 | // and its access token is expiring, renews and persists it. It may return a non-empty credential with an error, |
| 312 | // such as when refreshing fails. The caller decides whether to use the returned credential. |
| 313 | TokenForUserWithRefresh(hostname, username string) (credential Credential, refreshResult RefreshStatus, err error) |
| 314 | |
| 315 | // TokenForUser retrieves the credential for a specified user and hostname. Like ActiveToken it returns the last |
| 316 | // stored token as-is, including the current access token of a refreshable credential, and never refreshes it; use |
no outgoing calls