Skip to main content

is_good_token

Function is_good_token 

Source
pub(super) fn is_good_token(expiry_ms: Option<i64>, now_ms: i64) -> bool
Expand description

Whether the credentials file holds a token that is still good at now_ms (unix ms). The failure being cleared is a past one, so a token good now is not the expired one the turn was refused on; it can still be one the provider refuses for another reason (revoked), which first_try bounds.