pub fn create_jwt( uid: &str, role: &Role, permissions: Vec<Permission>, private_key: &str) -> Result<String, Error>