Skip to content

tag v3.3.5 error: GuzzleHttp Client must be of the type array, null given #143

@shaunthegeek

Description

@shaunthegeek

Issue / Motivation:

oauth login failed

Expected behavior:

get user from oauth server

Actual behavior:

error:

Argument 1 passed to GuzzleHttp\Client::__construct() must be of the type array, null given, called in laravel-demo/vendor/laravel/socialite/src/Two/AbstractProvider.php on line 356

Steps to reproduce the behavior:

composer require socialiteproviders/manager:^3.3.5

https://laravel.com/docs/5.8/socialite#routing

    public function handleProviderCallback()
    {
        $user = Socialite::driver('github')->user();

        // $user->token;
    }
Route::get('login/github/callback', 'Auth\LoginController@handleProviderCallback');

Proposed solution:

revert 42bdc6e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions