I have implemented a VueJS frontend connected to Keycloak using keycloak-js openid, without using the implicit flow
https://i.sstatic.net/BxhJh.png
Currently, there is a scenario in which the Backend NodeJS adds groups to a user in Keycloak. However, in order to retrieve those groups from the JWT, the user needs to log out and log back in on the Frontend.
Although I attempted to use keycloak.updateToken(), the function does not update my token as long as the access token remains valid. Is there any way to force keycloack js to update the token regardless of its validity?