Closed alibori closed 9 months ago
Strange. Could you send in a PR to check for the type from getBody
, then use getContents
if it's a PSR7 stream? Thanks!
Thank you for reporting this issue!
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Thank you!
Yes, of course I can!
Socialite Version
5.11
Laravel Version
9.19
PHP Version
8.1
Database Driver & Version
No response
Description
Hi!
I'm using Socialite for a Flutter mobile app with a Laravel Based backend to sign in with a Google Account.
From frontend I pass to backend the Google access token and the error appears when I try to run
userFromToken
method of theGoogleProvider
class.In concrete it fails when tries to do
json_decode
from the response because it's receiving aGuzzleHttp\Psr7\Stream
instead of a string:If instead, I do this the problem is solved:
Any idea about the cause of this?
Thanks a lot!
Steps To Reproduce