keycloak.js updateToken does not validate refresh token expiration date
in example
https://github.com/keycloak/keycloak/blob/master/examples/demo-template/a...
when i call getToken() method after refresh token expires i get
console.info('[KEYCLOAK] Refreshing token: token expired'); from keycloak.js:400
with /auth/realms/InfiniteBirEUmowy/protocol/openid-connect/token 400 (Bad Request)
[KEYCLOAK] Failed to refresh token
I need to check if refresh token does not expired and if it is call
KeycloakService.auth.authz.login();
Why this token refresh expiration check is not handled by updateToken inside keycloak.js
updateToken()?