I am following Github’s OAuth flow, and obtaining an access token that gives me access to the user’s email scope. When I exchange a code for an access token, using the https://github.com/login/oauth/access_token endpoint, I get the following response:
{
access_token: '83f42..xxx’,
token_type: 'bearer',
scope: 'user:email'
}
Looks great. So I make this request, using the token to get my user data:
Accept-Language: en-us
Accept: application/json
Authorization: token 83f42..xxx
Accept-Encoding: gzip, deflate
GET https://api.github.com/user
I do get my user object as a response, but the email property is null. Anyone else having this problem?
