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?
Here is some info about our token expiration settings: https://www.keycloak.org/docs/latest/server_admin/index.html#_timeouts
You can also request offline token, which never expires: https://www.keycloak.org/docs/latest/server_admin/index.html#_offline-access