Design a reliable end-to-end request flow in which a client must first obtain an auth token from an unstable third-party authentication server, then use that token to call a main/backend server. The third-party server may return garbage/malformed responses or fail requests outright. The backend is treated as a black box…