title: Json web token does not expire
body: <p>I just implemented a json web token authentication, on my backend I send the token which is created by <code>jsonwebtoken</code> to the client as following:</p>
  
  <pre><code>var token = jwt.sign(user, secret.secretToken, { expiresInMinutes: 1 });
  return res.json({ token: token });
  </code></pre>
  
  <p>and on the client side I simply store this token to the SessionStorage. The thing is that the token does not expire after a minute, am I missing something?</p>
  
  <p><strong>EDIT:</strong> I implemented same thing which is shown in <a href="https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/" rel="noreferrer">this</a> post.</p>