title: Refresh Token Jsonwebtoken
body: <p>I am using <a href="https://github.com/auth0/node-jsonwebtoken" rel="noreferrer">jsonwebtoken</a> in NodeJs API application for authenticating user in my API application. The flow that I have setup is as follows:</p>
  
  <p>1) The user registers through signup API and the access token is generated using the following:</p>
  
  <pre><code>var jwt = require('jsonwebtoken');
  var token = jwt.sign(user, _conf.authentication.superSecret, {
      expiresIn: 1440 // I intend to keep it short.
  });
  </code></pre>
  
  <p>2) The token expires in 24 hours for example. This token is returned to the client mobile application to use as header in all the subsequent API requests.</p>
  
  <p>I want to know how do I work around with refresh token for jwt. Currently I don't have a mechanism for refreshing token. Hence if the token expires in 24 hours I want the client (mobile app) to be able to request a new access token.
  Thanks in advance.</p>