leslie-tsang commented on issue #5930:
URL: https://github.com/apache/apisix/issues/5930#issuecomment-1004041743


   > Hi @zhangxingdeppon, just to make sure, do you need the Token generated by 
Apache APISIX will automatically expand its Expiration time?
   > 
   > According to https://jwt.io/, JSON Web Token is stateless and needs to be 
generated once it's expired. AFAIK, you may need to implement your logic with 
`access_token` & `refresh_token` to issue a new Token, see 
https://stackoverflow.com/questions/53946250/how-to-extend-the-expire-time-in-a-normal-access-token
   > 
   > What do you think, @leslie-tsang ?
   
   IMO, we **shouldn't change** the expiration time without permission[1][2], 
it defeats the **purpose** of the Token and makes it less reliable. It is best 
to refresh the token before it has expired.
   
   [1] https://jwt.io/introduction/
   [2] https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to