diff --git a/src/Authentication/FirestoreAuthentication.php b/src/Authentication/FirestoreAuthentication.php index 25cc2c6..99d5e0e 100644 --- a/src/Authentication/FirestoreAuthentication.php +++ b/src/Authentication/FirestoreAuthentication.php @@ -152,7 +152,7 @@ private function authRequest($method, $resource, array $options = []) return FirestoreHelper::decode((string) $this->client->getLastResponse()->getBody()); } catch (BadResponseException $exception) { - $this->setLastResponse($exception->getResponse()); + $this->client->setLastResponse($exception->getResponse()); $this->handleError($exception); } }