SocialiteProviders / Providers

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

Add safe check for email claim #1204

Closed jmberon closed 1 month ago

jmberon commented 1 month 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.