We upgraded to version 11 because of the SameSite cookie issue. But now our app cannot initiate keycloak using the javascript adapter.
We receive this error: Error: Uncaught (in promise): TypeError: Method Promise.prototype.then called on incompatible receiver [object Promise]
On line 365 of keycloak.js which is:
configPromise.then(function () {
check3pCookiesSupported().then(processInit)
.catch(function() {
promise.setError();
});
});
When our app is doing a keycloak.init() like this: keycloak.init({onLoad: ‘check-sso’})
This code was working in the older version and just broke after upgrading to 11. Any ideas how to resolve this?
The above code is not working on first time invocation, only the first alert appears. Only on invoking the function the second time all alerts within the then portion appear. Can you tell me what is the mistake here? I don’t see any errors on the console
@snet Thank you for reporting this. I believe it is not related to the issue described in this thread. Could you please create a ticket in our JIRA so we’d be able to triage this more efficiently? See also our other community channels. Thank you.