title: Is is a good approach to limit the size of JWT this way?
body: <p>Some API sites i used have relatively small token sizes but when i use jwt i get token in the size of more than 200. I am generatingtokens for session management using JWT as </p>
  
  <pre><code> const token_generated = (jwt.sign(user.toJSON(), 'your_jwt_secret'));
   const token=token_generated.substr(token_generated.length-15,15);
  </code></pre>
  
  <p>I am doing so as the size of JWT generated is really large. Is this a good approach to handle this or are there any methods available in jwt to limit token sizes</p>