When a user logs in (through Keycloak, with OpenID Connect using the authorization code flow), Keycloak creates an ID token and stores it as a JWT in a cookie.
Now, let’s suppose while the user is already logged in, he/she changes some data like his/her phone number which also happens to be stored in the ID Token.
This data is changed outside Keycloak and eventually changed in Keycloak’s database. After this update is performed, if the user logs out and logs in again, the ID token is updated with the new data (a phone number in this particular case).
Now, is there a way update the ID token with the new data, without requiring to logout and login again?
Thank you very much for your help!