@skylabs-digital/react-identity-access 3.2.0 → 3.2.1

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/dist/index.es.js CHANGED
@@ -101,7 +101,7 @@ class Je {
101
101
  const $e = fe(null), Tt = 5 * 60 * 1e3;
102
102
  function Sr({ config: r, children: e }) {
103
103
  var k, m, g;
104
- const { appId: t, baseUrl: n } = r, i = (((k = r.cache) == null ? void 0 : k.enabled) ?? !0) && !!t, a = ((m = r.cache) == null ? void 0 : m.ttl) ?? Tt, l = ((g = r.cache) == null ? void 0 : g.storageKey) ?? `app_cache_${t}`, [d, T] = N(() => {
104
+ const { appId: t, baseUrl: n } = r, i = (((k = r.cache) == null ? void 0 : k.enabled) ?? !0) && !!t, a = ((m = r.cache) == null ? void 0 : m.ttl) ?? Tt, l = ((g = r.cache) == null ? void 0 : g.storageKey) ?? (t ? `app_cache_${t}` : ""), [d, T] = N(() => {
105
105
  if (!i) return null;
106
106
  try {
107
107
  const b = localStorage.getItem(l);
@@ -115,11 +115,7 @@ function Sr({ config: r, children: e }) {
115
115
  x.current = d;
116
116
  const P = te(
117
117
  async (b = !1) => {
118
- if (!t) {
119
- c(!1), h(null);
120
- return;
121
- }
122
- if (!(!b && i && x.current))
118
+ if (t && !(!b && i && x.current))
123
119
  try {
124
120
  c(!0), h(null);
125
121
  const o = await new Je(new he(n)).getPublicAppInfo(t);