diff --git a/src/Provider.php b/src/Provider.php index 840dfd7..ce8286c 100644 --- a/src/Provider.php +++ b/src/Provider.php @@ -77,7 +77,9 @@ public function getAccessToken($code) 'form_params' => $this->getTokenFields($code), ]); - return $this->parseAccessToken($response->getBody()->getContents()); + $this->credentialsResponseBody = json_decode($response->getBody(), true); + + return $this->parseAccessToken($response->getBody()); } /**