thephpleague / oauth2-client

Easy integration with OAuth 2.0 service providers.
http://oauth2-client.thephpleague.com
MIT License
3.63k stars 751 forks source link

Invalid response received from Authorization Server. Expected JSON #1031

Open MH-Shakil38 opened 1 month ago

MH-Shakil38 commented 1 month ago

\vendor\league\oauth2-client\src\Provider\AbstractProvider.php

$oauthClient->getAccessToken('authorization_code', [ 'code' => $authCode, ]);

After calling this issues. Getting the error : Invalid response received from Authorization Server. Expected JSON