Permalink
Browse files

Remove if no access token check from userProfile.

  • Loading branch information...
1 parent 46ee2a4 commit 83324b4c00683c2fba26e4142f4b986b517c4519 @jaredhanson committed Mar 9, 2014
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/passport-github/strategy.js
@@ -87,8 +87,6 @@ util.inherits(Strategy, OAuth2Strategy);
* @api protected
*/
Strategy.prototype.userProfile = function(accessToken, done) {
- if(!accessToken) return done(new InternalOAuthError('accessToken not supplied', err));
-
this._oauth2.get(this._userProfileURL, accessToken, function (err, body, res) {
if (err) { return done(new InternalOAuthError('failed to fetch user profile', err)); }

0 comments on commit 83324b4

Please sign in to comment.