@alfabit/keycloak 0.0.45 → 0.0.47

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.45",
4
+ "version": "0.0.47",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
7
7
  "main": "src/index.ts",
@@ -22,6 +22,7 @@ export const postWebLogin = async () => {
22
22
  urlObj.searchParams.set('ym_client_id', clientID);
23
23
  url = urlObj.toString();
24
24
  }
25
+ else throw new Error();
25
26
  } catch (error) {
26
27
  console.warn('Failed to get analytics clientID:', error);
27
28
  }
@@ -456,6 +456,8 @@ export async function initKeycloak() {
456
456
 
457
457
  const res = await keycloak.value.init(initOptions);
458
458
 
459
+ checkAuth.value = true;
460
+
459
461
  console.log('initKeycloak', {
460
462
  res,
461
463
  });
@@ -468,6 +470,8 @@ export async function initKeycloak() {
468
470
  // isPopup();
469
471
  keycloakUserData.value = keycloak.value?.tokenParsed ?? null;
470
472
  isAuth.value = true;
473
+
474
+
471
475
  try {
472
476
  console.log('before postWebLogin 1');
473
477
  await postWebLogin();