Skip to main content

token

Function token 

Source
pub async fn token(
    config: &Config,
    force: bool,
    cancel: &CancellationToken,
) -> Result<String, String>
Expand description

An access token for config: the cached one while it has more than 30s left, else a fresh exchange. force skips the cache, as after a 401.