Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid response received from Authorization Server. Expected JSON #1031

Open
MH-Shakil38 opened this issue May 31, 2024 · 1 comment
Open

Comments

@MH-Shakil38
Copy link

\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

@plierschpl
Copy link

plierschpl commented Jul 29, 2024

Have you checked your response in the abstractProvider?

Maybe the same mistake as mine.

I debugged the $response of the getAccessToken (AbstractProvider.php) method and encountered the following error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants