Skip to main content

expiry

Function expiry 

Source
fn expiry(
    exp: Option<i64>,
    now: OffsetDateTime,
    bound: bool,
) -> Result<OffsetDateTime, ApiError>
Expand description

When a token for exp stops being good: exp itself when it is in bounds, or DEFAULT_LIFETIME from now when the caller named none.