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

Bugfix: Typo in scope 'user:email' instead of 'user.email', fixes #24 #26

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Jefferson49
Copy link
Contributor

@Jefferson49 Jefferson49 commented Aug 31, 2024

In issue #24, an error was reported if the accessed Github profile does not have a public email address. In this case, oauth2-github tries to retrieve the email address with a call to the Github API ~/emails. However, this API call fails with a 404 error.

During debugging, I recognized that the root cause for this issue is a typo on the default scope:

The attached pull request fixes this issue.

Copy link
Member

@shadowhand shadowhand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shadowhand shadowhand merged commit 70b4253 into thephpleague:main Sep 3, 2024
1 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants