title: Drupal Services Token Lifetime
body: <p>We have built a mobile app using Phonegap.</p>
  
  <p>The login flow is as follows:</p>
  
  <ul>
  <li>User logs in with username/password</li>
  <li>Services returns a token</li>
  <li>Token is saved locally using localstorage</li>
  <li>All future requests are made with this token without issues</li>
  </ul>
  
  <p>Now this is where we are having issues:
  - We close the app for several days
  - Re-open the app
  - Attempt to perform a request using the token saved in localstorage
  - Now we are getting a response saying "Anonymous users do not have permissions...."</p>
  
  <p>My question is, what is the lifetime of a token? Is there a way to check the validity of a token?</p>
  
  <p>I have been struggling with this for weeks now.</p>