Hi,
Expiration date is a regular property of the JWT. It is set when generating a JWT according to the general expiration date of the JwtGenerator and checked against the current date and an optional expiration date in the JwtAuthenticator.
Currently, we only have one expiration date in the JwtGenerator so you cannot change it for each JWT, it would not be thread safe. You can create several JwtGenerator for several expiration dates, but it's true that we could have a more convenient method accepting an expiration date.
Thanks.
Best regards,
Jérôme