Set lifespan using Spring boot

how to set lifespan of a refresh token and access token in Keycloak client using spring boot 3 please?