title: fromAuthHeaderAsBearerToken is not working in NODE
body: <p>I did following things to passport authentication in Node.</p>
  
  <p>1) I am using jwtFromRequest : <code>ExtractJwt.fromAuthHeaderAsBearerToken()</code>,</p>
  
  <pre><code>module.exports = function(passport){
      var opts = {};
      opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken();
      opts.secretOrKey = config.secret;
      console.log('Inside passport');
      //opts.issuer = 'accounts.examplesoft.com';
      //opts.audience = 'yoursite.net';
      passport.use(new JwtStrategy(opts, function(jwt_payload, done) {
          console.log('Payload :: '+jwt_payload._doc);
          User.getUserById({id: jwt_payload._doc._id}, function(err, User) {
              if (err) {
                  return done(err, false);
              }
              if (User) {
                  return done(null, User);
              } else {
                  return done(null, false);
                  // or you could create a new account
              }
          });
      }));
  </code></pre>
  
  <p>2) Calling the method in the following way:</p>
  
  <pre><code>userExpressRoutes.route('/profile')
      .get(passport.authenticate('jwt', { session: false }), function (req, res) {  });
  </code></pre>
  
  <p>3) Setting the header in Ppostman like : <code>Authorization:Bearer {token}</code></p>
  
  <p><a href="https://i.stack.imgur.com/Xu2OV.png" rel="noreferrer">Post Authentication Header</a></p>
  
  <p>4) It is giving <code>undefined</code> payload</p>
  
  <pre><code>Payload :: undefined
  TypeError: Cannot read property '_id' of undefined
  </code></pre>
  
  <p>What is missing here to get Jwt_payload?</p>
  
  <p>Can someone help me?</p>