You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Provider Execption: Argument 1 passed to League\OAuth2\Client\Provider\AbstractProvider::setResultUid() must be of the type array, null given,
#183
Closed
ketanshah79 opened this issue
Dec 11, 2014
· 2 comments
I am in process of integrating oauth2-client into my laravel app. I am using the "Authorization Code Flow" https://github.com/thephpleague/oauth2-client#authorization-code-flow to setup Google. I've setup correct client id/ secret from google. When google hits back on my callback url I get the following Error Exception
"Argument 1 passed to League\OAuth2\Client\Provider\AbstractProvider::setResultUid() must be of the type array, null given, called in /private/var/www/mrk/mockup-app/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 215 "
Screenshot attached. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
// Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken('authorization_code', [
'code' => $_GET['code']
]);
// If you are using Eventbrite you will need to add the grant_type parameter (see below)
$token = $provider->getAccessToken('authorization_code', [
'code' => $_GET['code'],
'grant_type' => 'authorization_code'
]);
// Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken('authorization_code', [
'code' => $_GET['code']
]);
// If you are using Eventbrite you will need to add the grant_type parameter (see below)
$token = $provider->getAccessToken('authorization_code', [
'code' => $_GET['code'],
'grant_type' => 'authorization_code'
]);
All good now.
Thank you
�
Reply to this email directly or view it on GitHub.
Hi there,
I am in process of integrating oauth2-client into my laravel app. I am using the "Authorization Code Flow" https://github.com/thephpleague/oauth2-client#authorization-code-flow to setup Google. I've setup correct client id/ secret from google. When google hits back on my callback url I get the following Error Exception
"Argument 1 passed to League\OAuth2\Client\Provider\AbstractProvider::setResultUid() must be of the type array, null given, called in /private/var/www/mrk/mockup-app/vendor/league/oauth2-client/src/Provider/AbstractProvider.php on line 215 "
Screenshot attached. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: