Jwt-auth: Get token expiration time?

Created on 14 Jun 2016  路  2Comments  路  Source: tymondesigns/jwt-auth

I want to refresh token before it expire, but problem is I don't know how to get expiration time for some token...

Flow:

  1. Check how much time till expire. Ex: 3min till token expire
  2. If 3 or less then invalidate old token and refresh it

Most helpful comment

732 - _How do I get the token expiration time?_

321 - _Get token expiration after JWTAuth::attempt_

All 2 comments

732 - _How do I get the token expiration time?_

321 - _Get token expiration after JWTAuth::attempt_

Cheers @tdhsmith - A good look through other issues first is a good idea

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agneshoving picture agneshoving  路  3Comments

loic-lopez picture loic-lopez  路  3Comments

gandra picture gandra  路  3Comments

Rasoul-Karimi picture Rasoul-Karimi  路  3Comments

aofdev picture aofdev  路  3Comments