diff --git a/src/Socialite/PassportProvider.php b/src/Socialite/PassportProvider.php index 94dd3d2..17fec18 100644 --- a/src/Socialite/PassportProvider.php +++ b/src/Socialite/PassportProvider.php @@ -46,7 +46,7 @@ protected function getUserByToken($token) ], ]); - return json_decode($response->getBody(), true); + return json_decode((string) $response->getBody(), true); } protected function mapUserToObject(array $user)