This pull request updates both repository examples (README.md & app.js) to work with new Github payloads and solves #40. Emails are now an array rather than a single string property so the present examples are failing. Additionally, without explicitly specifying the user:email scope, it is possible to retrieve an empty array of emails as the token would be valid only for retrieving public emails. I elected to update the example scope accordingly rather than adding any further complexity to the customizeGithubProfile hook by attempting to handle those null cases.
Other Info
This change should be reflected in the main Feathers documentation referenced in the issue.
Summary
This pull request updates both repository examples (
README.md
&app.js
) to work with new Github payloads and solves #40. Emails are now an array rather than a single string property so the present examples are failing. Additionally, without explicitly specifying theuser:email
scope, it is possible to retrieve an empty array of emails as the token would be valid only for retrieving public emails. I elected to update the example scope accordingly rather than adding any further complexity to thecustomizeGithubProfile
hook by attempting to handle those null cases.Other Info
This change should be reflected in the main Feathers documentation referenced in the issue.