Skip to main content

maybe_decrypt

Function maybe_decrypt 

Source
pub fn maybe_decrypt(
    key: Option<&TokenEncryptionKey>,
    stored: &str,
) -> Result<String, AuthError>
Expand description

Attempt to decrypt stored if it carries an encryption sentinel. Equivalent to maybe_decrypt_bound with empty AAD.