Skip to content

Commit

Permalink
Updates for GitHub API v3 authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Jun 13, 2012
1 parent ec9dcad commit e7072b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth.strategies/github.js
Expand Up @@ -55,12 +55,12 @@ module.exports= function(options, server) {
else {
request.session["access_token"]= access_token;
if( refresh_token ) request.session["refresh_token"]= refresh_token;
my._oAuth.getProtectedResource("https://github.com/api/v2/json/user/show", request.session["access_token"], function (error, data, response) {
my._oAuth.getProtectedResource("https://api.github.com/user", request.session["access_token"], function (error, data, response) {
if( error ) {
request.getAuthDetails()['github_login_attempt_failed'] = true;
self.fail(callback);
}else {
self.success(JSON.parse(data).user, callback)
self.success(JSON.parse(data), callback)
}
})
}
Expand Down

0 comments on commit e7072b7

Please sign in to comment.