sergiodxa / remix-auth-github

A GitHubStrategy for Remix Auth, based on the OAuth2Strategy
https://sergiodxa.github.io/remix-auth-github/
MIT License
71 stars 17 forks source link

Send back full email response from GitHub #5

Open Matthew-Mallimo opened 2 years ago

Matthew-Mallimo commented 2 years ago

If the user passes the user:email scope, this package will hit the /user/emails endpoint on GitHub, and pull out only the emails from the array. https://github.com/sergiodxa/remix-auth-github/blob/main/src/index.ts#L142

This API responds with some additional data that can be beneficial to users.

  {
    "email": "",
    "primary": true,
    "verified": true,
    "visibility": "public"
  },

Might be worth sending along these additional values.