TypeError: Method Promise.prototype.then called on incompatible receiver [object Promise]
This seems to be specifically happening in Angular apps.
This issue was technically caused by KEYCLOAK-9346 but was not manifested until Keycloak 11 where some timing has changed in the JS adapter due to KEYCLOAK-13206.
Session Status iframe cannot access cookies when 3rd party cookies are blocked
Switch to native promise by default and deprecate legacy promise