diff --git a/flytekit/clients/auth/auth_client.py b/flytekit/clients/auth/auth_client.py index 5592621ed7..e46475e9b7 100644 --- a/flytekit/clients/auth/auth_client.py +++ b/flytekit/clients/auth/auth_client.py @@ -367,7 +367,8 @@ def get_creds_from_remote(self) -> Credentials: self._request_authorization_code() - server.handle_request(q) + while q.empty(): + server.handle_request(q) server.server_close() # Send the call to request the authorization code in the background