I would like to remind everyone reading this:
WE STRONGLY DISCOURAGE YOU FROM DOING THIS!
In Strapi v4 we introduced API Tokens and are currently working on API Tokens v2 with RBAC capabilities that should fit the need of most users instead of extending the expiration of a JWT.
Once a JWT is issued, YOU CANNOT revoke it without changing the JWT secrets which will revoke all JWTs issued and requires a server restart.
Please do not do this.