Skip to main content

decrypt_token_with_config

Function decrypt_token_with_config 

Source
pub fn decrypt_token_with_config(
    stored: &str,
    secret: &AuthConfig,
) -> Result<String, AuthError>
Expand description

Source recognizes even-length hexadecimal (and versioned $ba$ envelopes) as ciphertext. Other strings, including old plaintext tokens, pass through.

ยงErrors

Returns an error when validation, storage, or an application callback fails.