New Access token don't expire previous token

Hi,

Jmix version '1.5.0'

When i generate new token oauth/token previous token of the same user does not get expire. when a new token is generated i want to expire the previous token.

I had check the TokenEndpoint class in jmix and new token is getting generated via below line

OAuth2AccessToken token = getTokenGranter().grant(tokenRequest.getGrantType(), tokenRequest);

Is there any configuration to expire previous token if new getting generated or how can we override
TokenEndpoint class and add condition to expire token before generating new token.

Also i had gone through oauth/revoke endpoint document but how can we manage this when oauth/token endpoint is called fetching previous token (Any jpql or sql for this).