Skip to main content

refresh_login

Function refresh_login 

Source
pub async fn refresh_login(
    issuer: &str,
    refresh_token: &str,
    aud: &str,
) -> Result<(String, String)>
Expand description

Trades a refresh token for a token for aud (DEFAULT_AUDIENCE if empty). With rotation the issuer returns a new refresh token, which replaces the old one (empty if it didn’t rotate). Returns (token, new_refresh_token). A refused refresh token is Error::LoginExpired.