@alfabit/keycloak 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -383,13 +383,13 @@ export async function initKeycloak() {
|
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
// Устанавливаем onLoad только если нужно
|
|
386
|
-
if (KEYCLOAK_LOGIN_REQUIRED || (![AppNameEnum.PASSPORT, AppNameEnum.EXCHANGE].includes(APP_NAME))) {
|
|
387
|
-
|
|
388
|
-
} else if (isNeedAuth) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
386
|
+
// if (KEYCLOAK_LOGIN_REQUIRED || (![AppNameEnum.PASSPORT, AppNameEnum.EXCHANGE].includes(APP_NAME))) {
|
|
387
|
+
// initOptions.onLoad = 'login-required';
|
|
388
|
+
// } else if (isNeedAuth) {
|
|
389
|
+
// // clearTokens();
|
|
390
|
+
// // window.location.href = getUrl() as string;
|
|
391
|
+
// }
|
|
392
|
+
initOptions.onLoad = 'check-sso';
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
console.log('>>>>>', {
|