code: function (req, res, next) {
      var accessToken = req.accessToken;
      var headers = { 'User-Agent': 'Satellizer' };
      var userApiUrl = 'https://api.github.com/user';
  
      request.get({ url: userApiUrl, qs: accessToken, headers: headers, json: true }, function(err, response, profile) {
        if (err) {
          res.status(500).send(err);
          return;
        }
        req.profile = profile;
        next();
      });
    }
docs: Step 2. Retrieve profile information about the current user.