pub fn maybe_decrypt_with_config(
value: Option<&str>,
encrypt: bool,
secret: &AuthConfig,
) -> Result<Option<String>, AuthError>Expand description
Conditionally decrypt a token value. Returns the original value when encryption is disabled, or the decrypted value when enabled.
ยงErrors
Propagates decryption errors when token encryption is enabled.