Skip to main content

session_from_refresh

Function session_from_refresh 

Source
pub fn session_from_refresh(
    previous: &Session,
    grant: &TokenGrant,
    now: SystemTime,
) -> Session
Expand description

Builds the session after a refresh of previous (AC3, AC6): a missing refresh_token keeps the old one, missing account data keeps the old values (with a warning).