Skip to main content

token_needs_refresh

Function token_needs_refresh 

Source
pub fn token_needs_refresh(
    now: SystemTime,
    expiration: Option<SystemTime>,
) -> bool
Expand description

Returns true if we should refresh the token (i.e., it’s expired or about to expire).