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.
ยงErrors
Returns an error if an encrypted token cannot be authenticated or decoded.