Unable to set JWT expiration time


I am trying to set the jwt expiration time to 1 day. I have followed the documentation and created a security.json file and but the below json.

But when i check the jwt token it is still valid for 30 days.
Am i missing something or is there something else i need to do?