Capgemini Interview Question

Your application uses JWT authentication, and API tokens expire after a certain time. How would you implement automatic token refresh without interrupting the user experience?