When using token introspection, usually you get exp property to know when the token will expire.
exp: OPTIONAL. Integer timestamp, measured in the number of seconds since January 1 1970 UTC,
indicating when this token will expire, as defined in JWT
See: https://tools.ietf.org/html/rfc7662#section-2.2
The current code uses a custom expires_in property for the TTL in the cache.