SocialiteProviders / Providers

A Collection of Providers for Laravel Socialite
https://socialiteproviders.com
MIT License
506 stars 445 forks source link

Add safe check for email claim #1204

Closed jmberon closed 6 months ago

jmberon commented 6 months ago

Use Laravel's helper function Arr::get when accessing the 'email' key in the $user array.

This prevents PHP from throwing an "Undefined index" error when trying to access the 'email' key that doesn't exist in the array. Valid in the case where the email is not a claim used to identify the user.