Skip to main content

encrypt_token_set

Function encrypt_token_set 

Source
pub fn encrypt_token_set(
    ctx: &AuthContext<impl AuthSchema>,
    access_token: Option<String>,
    refresh_token: Option<String>,
    id_token: Option<String>,
) -> Result<EncryptedTokenSet, AuthError>
Expand description

Read encrypt_oauth_tokens and secret from the auth context and conditionally encrypt a full set of OAuth tokens in one call.