We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4532ec commit ca324c2Copy full SHA for ca324c2
adapters/oidc/js/src/main/resources/keycloak.js
@@ -159,10 +159,12 @@
159
var callback = parseCallback(window.location.href);
160
161
if (callback) {
162
- setupCheckLoginIframe();
163
- window.history.replaceState({}, null, callback.newUrl);
164
- processCallback(callback, initPromise);
165
- return;
+ return setupCheckLoginIframe().success(function() {
+ window.history.replaceState({}, null, callback.newUrl);
+ processCallback(callback, initPromise);
+ }).error(function (e) {
166
+ throw 'Could not initialize iframe';
167
+ });
168
} else if (initOptions) {
169
if (initOptions.token && initOptions.refreshToken) {
170
setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
0 commit comments