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)
| 302 | // and its access token is expiring, renews and persists it. It may return a non-empty credential with an error, |
| 303 | // such as when refreshing fails. The caller decides whether to use the returned credential. |
| 304 | TokenForUserWithRefresh(hostname, username string) (credential Credential, refreshResult RefreshStatus, err error) |
| 305 | |
| 306 | // TokenForUser retrieves the credential for a specified user and hostname. Like ActiveToken it returns the last |
| 307 | // stored token as-is, including the current access token of a refreshable credential, and never refreshes it; use |
no outgoing calls