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