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

gamelife1314 picture gamelife1314  路  3Comments

hfalucas picture hfalucas  路  3Comments

lbottoni picture lbottoni  路  3Comments

shah-newaz picture shah-newaz  路  3Comments

CBR09 picture CBR09  路  3Comments