Skip to main content

encrypt_token_set

Function encrypt_token_set 

Source
pub fn encrypt_token_set<DB: DatabaseAdapter>(
    ctx: &AuthContext<DB>,
    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.