Is there any way to update KEYCLOAK refresh token in ajax call?

We have created one page application with KEYCLOAK javascript client, once user is login to application user can use application without refreshing page, therefore refresh token is not updating its expire time and expire after refresh token get expire, is there any way to update KEYCLOAK refresh token in ajax call.

My problem is refresh token get expired in middle of user intraction.