Skip to content

Commit

Permalink
Merge 0fefb57 into 46b96e8
Browse files Browse the repository at this point in the history
  • Loading branch information
rodikh committed Feb 6, 2020
2 parents 46b96e8 + 0fefb57 commit 5258058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strategy.js
Expand Up @@ -135,7 +135,7 @@ Strategy.prototype.userProfile = function(accessToken, done) {


if (self._scope && self._scope.indexOf('user:email') !== -1) {
self._oauth2._request('GET', self._userProfileURL + '/emails', { 'Accept': 'application/vnd.github.v3+json' }, '', accessToken, function(err, body, res) {
self._oauth2._request('GET', self._userProfileURL + '/emails', { 'Accept': 'application/vnd.github.v3+json', "Authorization": "token " + accessToken }, '', accessToken, function(err, body, res) {
if (err) {
// If the attempt to fetch email addresses fails, return the profile
// information that was obtained.
Expand Down

0 comments on commit 5258058

Please sign in to comment.