title: req.body undefined after authenticating with passport jwt strategy
body: <p>I am using JWT to do authentication with a user in my express app. One of the routes needs to be authenticated before continuing so I am doing so like this per following the documentation and a tutorial:</p>
  
  <pre><code>router.post('/current/update', passport.authenticate('jwt', { session: false }),(res, req) =&gt; {
    console.log(req.body) //undefined
  }
  </code></pre>
  
  <p><strong>passport.js</strong></p>
  
  <pre><code>const JwtStrategy = require('passport-jwt').Strategy;
  const ExtractJwt = require('passport-jwt').ExtractJwt;
  const mongoose = require('mongoose');
  const Account = mongoose.model('accounts')
  const keys = require('./keys');
  
  const opts = {};
  opts.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken();
  opts.secretOrKey = keys.secretOrKey;
  
  module.exports = passport =&gt; {
      passport.use(
        new JwtStrategy(opts, (jwt_payload, done) =&gt; {
            Account.findById(jwt_payload.id)
            .then(account =&gt; {
                if(account){
                    return done(null, account)
                }
                return done(null, false)
            }).catch(err =&gt; {
                console.log(err)
                return done(err)
              })
      })
    );
  };
  </code></pre>
  
  <p>Not knowing how to get access to the body of the request is troubling because that means I don't know how to get access to the <code>req.params</code> and <code>req.query</code>. I have tried numerous methods, including passing the <code>req</code> along with the strategy:</p>
  
  <pre><code>new JwtStrategy(opts, (req, jwt_payload, done) =&gt; ...
  </code></pre>
  
  <p>So question is, if not gotten from above, is how do I get access to the <code>req</code> object, other than just <code>req.user</code>so that I am able to handle parameterized URLs and queries?</p>