title: In JWT the sign() method
body: <p>i am new to JWT concepts while i am learning in this site </p>
  
  <p><a href="https://code.tutsplus.com/tutorials/jwt-authentication-in-angular--cms-32006" rel="nofollow noreferrer">https://code.tutsplus.com/tutorials/jwt-authentication-in-angular--cms-32006</a></p>
  
  <p>in the above link at this line :</p>
  
  <pre><code>  var token = jwt.sign(user, JWT_Secret);
  </code></pre>
  
  <p>he has written the jwt.sign() with only two parameters but while i saw few other posts where they are sending 3 parameters </p>
  
  <p>my doubt is that jwt.sign() is correct 
  2) how to create a secret_token 
  3) and how to send all the required parameters to send in the jwt.sign() method</p>
  
  <p>please help me i hope you understood my problem ,friends please help me</p>