Token dynamic expiration time


I am interested in if it is possible to generate tokens with dynamically changed expiration time, for example i want to generate token whose expiration time will be 1 minute and also i want to generate token with 1 years of expiration time, i will listen any suggestions

Thanks for attention.

Based on what you would like to decide how long the token should last? Could you elaborate more on what behaviour you would expect?

From docs:
Here is some info about our token expiration settings:
You can also request offline token, which never expires: