pub fn maybe_encrypt(
value: Option<String>,
encrypt: bool,
secret: &str,
) -> Result<Option<String>, AuthError>Expand description
Conditionally encrypt a token with a single persistence key.
ยงErrors
Returns an error if token encryption fails.