Skip to content

Handle Google responses excluding fields like 'name' #1380

@Mat-Hartje

Description

@Mat-Hartje

It's possible for Google's API response to exclude the 'name' key and others in its JSON payload.

see the laravel/socalite provider: https://github.com/laravel/socialite/blob/5.x/src/Two/GoogleProvider.php#L94
see also: laravel/socialite@81b871d

we're using socaliteproviders/google 4.1.0, and hitting Undefined array key "name" exceptions when calling Socialite::driver('google')->user();

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