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

CBR09 picture CBR09  路  3Comments

harveyslash picture harveyslash  路  3Comments

aofdev picture aofdev  路  3Comments

gandra picture gandra  路  3Comments

johncloud200 picture johncloud200  路  3Comments