title: console.log() is not working when I use postman
body: <p>I have this function that I was trying to debug because i was getting an error.  I have since fixed the issue because I found someone with a similar problem, but being able to console log one of the parameters in the JwtStrategy would have really helped and given me a better understanding what was being passed through.  I still can't seem to console it even though others have been able to using Postman and their source code.</p>
  
  <p>So I have mongod and nodemon running in the back.  and I this is the function.</p>
  
  <pre><code>module.exports = function(passport){
  
      let opts = {}; //options is an object literal containing options to control how token is extracted.
      opts.jwtFromRequest = ExtractJwt.fromAuthHeaderWithScheme("jwt")  
      opts.secretOrKey = config.secret; //string containing the secret or pem encoded public key verifying the tokens signiture
      passport.use(new JwtStrategy(opts, (jwt_payload,done)=&gt;{
          console.log(jwt_payload);  
          User.getUserById(jwt_payload._doc._id, (err, user)=&gt;{  
              if(err){
                  return done(err,false);
              }
              if(user){
                  return done(null, user);
              }else{
                  return done(null,done);
              }
          });
      }));
  }
  </code></pre>
  
  <p>As you see, I have a console.log(jwt_payload);
  This is what I put into Postman
  Post method, <a href="http://localhost:3000/users/authenticate" rel="nofollow noreferrer">http://localhost:3000/users/authenticate</a>, body:</p>
  
  <pre><code>{
      "username":"bobdylan",
      "password":"123456"
  }
  </code></pre>
  
  <p>As I said above it is working and returning the correct JSON that I want.  The only problem is that this jwt_payload isn't console logging in the terminal so I can see it passing through.  I have this in the terminal.</p>
  
  <pre><code>Server started on port 3000
  yay i am connected to databasemongodb://localhost:27017/authapp
  </code></pre>
  
  <p>So the "yay I am connected" is a console.log in the app.js.  Why is this printing but not my console.log above?  I would like to have this ability for future debugging issues.  </p>
  
  <p>This is additional code showing that it is actually working but the console log isnt working</p>
  
  <pre><code>{
      "sucess": true,
      "token": "JWTeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1YTk2M2VmMGM3MjM4NjA0MGUwYTgwZjEiLCJuYW1lIjoiYm9iIiwiZW1haWwiOiJib2JAZHlsYW4uY29tIiwidXNlcm5hbWUiOiJib2JkeWxhbiIsInBhc3N3b3JkIjoiJDJhJDEwJHprbFBVWjI5dlJMLjRJWnlOZ1N6amVaMk1mVGVzcWdRSHIuTEkzVjhmZTIwT1NxT2p0STdLIiwiX192IjowLCJpYXQiOjE1MTk3OTk0NTcsImV4cCI6MTUyMDM5OTQ1N30.DlwzJuQayQ1zc4p8Gy5PGaE22N8ekyrBrmOhVPMkJ6Y",
      "user": {
          "id": "5a963ef0c72386040e0a80f1",
          "name": "bob",
          "username": "bobdylan",
          "email": "bob@dylan.com"
      }
  }
  </code></pre>
  
  <p>So that is the response after the request.  </p>