Skip to main content

refresh

Function refresh 

Source
pub async fn refresh(
    current: &MuxBusCredentials,
    discovered: Option<&CloudSettings>,
    http: &Client,
) -> Result<MuxBusCredentials, RefreshTokenError>
Expand description

Refreshes current: against the discovered host when host_to_adopt names one (the result then carries that host), else, or when that fails for any reason (an error answer, no answer, or no answer in time), against the stored host.