Skip to main content

maybe_decrypt

Function maybe_decrypt 

Source
pub fn maybe_decrypt(
    value: Option<&str>,
    encrypt: bool,
    secret: &str,
) -> Result<Option<String>, AuthError>
Expand description

Conditionally decrypt a token with a single persistence key.