@alfabit/keycloak 0.0.15 → 0.0.16

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfabit/keycloak",
3
3
  "private": false,
4
- "version": "0.0.15",
4
+ "version": "0.0.16",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
7
7
  "main": "src/index.ts",
@@ -353,7 +353,12 @@ export async function initKeycloak() {
353
353
  if (KEYCLOAK_LOGIN_REQUIRED || (window.opener && APP_NAME !== AppNameEnum.PASSPORT)) {
354
354
  initOptions.onLoad = 'login-required';
355
355
  } else if (isNeedAuth) {
356
- initOptions.onLoad = 'check-sso';
356
+ // initOptions.onLoad = 'check-sso';
357
+
358
+ clearTokens();
359
+ window.location.href = getUrl() as string;
360
+
361
+
357
362
  }
358
363
 
359
364
  if (!isNeedAuth) {