Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multiple emails from eg. Google #16

Open
Spriz opened this issue Apr 27, 2017 · 3 comments
Open

Issue with multiple emails from eg. Google #16

Spriz opened this issue Apr 27, 2017 · 3 comments

Comments

@Spriz
Copy link
Contributor

Spriz commented Apr 27, 2017

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: image

@LorenzoRogai
Copy link

For anyone searching for a fix i pushed a pull request for this

https://github.com/UseMuffin/OAuth2/pull/18

@Spriz
Copy link
Contributor Author

Spriz commented Dec 26, 2017

Link fix: #18

@ADmad
Copy link
Member

ADmad commented Nov 26, 2018

Wouldn't simply using the mapFields option as

'mapFields' => ['email' => 'emails.0.value']

solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants