fanyu-byte opened a new issue, #11650:
URL: https://github.com/apache/apisix/issues/11650

   ### Current Behavior
   
    When we use the jwt-auth plugin, no matter how much the exp in the payload 
is set to, the actual token expiration time will be the current time + the 
default expiration time (1 day)
   
   ### Expected Behavior
   
    the token expiretime should same as which i configed in the payload
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. start apisix and jwt-plugin
   2. generage jwt-token and write payload contains exp , such as
   curl -G --data-urlencode 
'payload={"uid":10000,"uname":"test","exp":1728976481}' 
http://127.0.0.1:9080/apisix/plugin/jwt/sign?key=merchant-key
   
   3. Parse the token to check the exp and see if it is consistent with the 
expectation.
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.10.0
   - Operating system (run `uname -a`): wsl2.0
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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