thephpleague / oauth2-github

GitHub Provider for the OAuth 2.0 Client
MIT License
106 stars 29 forks source link

Allow using the `read:user` which doesnt have emails available to it #25

Closed dpi closed 4 days ago

dpi commented 4 months ago

Fixes thephpleague/oauth2-github/issues/24

This is just one way of doing it I suppose. Needs some thoughts on maintainers of thephpleague/oauth2-github

Allows devs to opt out of collecting emails by setting an option.

We could alternatively detect the scopes against a whitelist, automate it without an option.