OAuth2
OAuth2 copied to clipboard
Issue with multiple emails from eg. Google
In my case, Google returns multiple email addresses, so the code @ https://github.com/UseMuffin/OAuth2/blob/master/src/Auth/OAuthAuthenticate.php#L193 doesn't seem to work.
I'm not quite sure in which package this issue should be corrected though 🤔
Example of the object: 
For anyone searching for a fix i pushed a pull request for this
https://github.com/UseMuffin/OAuth2/pull/18
Link fix: https://github.com/UseMuffin/OAuth2/pull/18
Wouldn't simply using the mapFields option as
'mapFields' => ['email' => 'emails.0.value']
solve the problem?