pub fn encode( secret: &str, salt: &str, payload: &Value, max_age: f64, ) -> AuthResult<String>
Returns an error when validation, storage, or an application callback fails.