remix-auth-github icon indicating copy to clipboard operation
remix-auth-github copied to clipboard

Send back full email response from GitHub

Open Matthew-Mallimo opened this issue 3 years ago • 0 comments

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.

Matthew-Mallimo avatar Feb 16 '22 02:02 Matthew-Mallimo