diff --git a/integration/js/src/main/resources/keycloak.js b/integration/js/src/main/resources/keycloak.js index 04b48f735a..4cf7a51418 100755 --- a/integration/js/src/main/resources/keycloak.js +++ b/integration/js/src/main/resources/keycloak.js @@ -57,6 +57,7 @@ var Keycloak = function (config) { } else if (initOptions) { if (initOptions.token || initOptions.refreshToken) { setToken(initOptions.token, initOptions.refreshToken); + initPromise.setSuccess(); } else if (initOptions.onLoad) { var options = {}; switch (initOptions.onLoad) {