Destroy session after SSO session idle expired

Hi everyone,

I am using Keycloak as authenticaiton server and I using Keycloak via Rest API. I set access token lifespan to 5 min, SSO session idle time to 20 min, this mean I can get a new access token and refresh token for 20 min after user logged in. I should also provide session limitation. Keycloak does not destroy session even SSO idle time expired, as I understood SSO session max attribute is constant value that destroy session when its expired but I need to destroy session when SSO session idle time expired due to session limitation. Is there possibility to destroy session when SSO idle expired or how can I implement that kinda functionality ?