pub fn generate_jwt_token( user_id: Uuid, ttl: i64, private_key: &str, ) -> Result<TokenDetails, Error>