code: function (req, res, next) {
      var peopleApiUrl = 'https://api.linkedin.com/v1/people/~:(id,first-name,last-name,email-address)';
      var accessToken = req.accessToken;
      var params = {
        oauth2_access_token: access_token,
        format: 'json'
      };
  
      request.get({ url: peopleApiUrl, qs: params, 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.