Hi Enzo Iannitelli,
Is your Mendix application creating the jwt token?
if so you can create an entity to store the JWT token and store the Expiry date as well. you can then run a scheduler to delete the tokens which have expired.
In your rest call first validate the jwt token and if expired set the response message accordingly.
If the JWT token is not created by your Mendix app, then you will have to check with the vendor who is providing the JWT, do they have any mechanism to check if it expired.
Hope it helps!!
Hi Enzo,
The marketplace module JWT provides an easy validation flow for these tokens (nbf, iat, exp, etc.). Don't forget to also verify the signature by providing the public key. That suggestion is mainly if you use it for published API's, but you're consuming. 😅