pub async fn make_auth_request( endpoint: &str, payload: &Value, expected_status: u16, ) -> Result<Value, String>