pub fn maybe_encrypt( value: Option<String>, encrypt: bool, secret: &str, ) -> Result<Option<String>, AuthError>
Conditionally encrypt a token with a single persistence key.