@crystaltech/hsms-shared-ui 0.7.14-alpha.0.10 → 0.7.14-alpha.0.11

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
@@ -28774,12 +28774,18 @@ const Zw = () => {
28774
28774
  t(!1);
28775
28775
  }
28776
28776
  }, isLoading: e, directLogout: async () => {
28777
- const i = localStorage.getItem("refresh_token"), a = Sr(), s = a ? `${a}/hsms/org/api/auth/logout` : "/";
28778
- await fetch(s, {
28777
+ const i = localStorage.getItem("refresh_token"), a = localStorage.getItem("access_token"), s = Sr(), l = s ? `${s}/hsms/org/api/auth/logout` : "/";
28778
+ await fetch(l, {
28779
28779
  method: "POST",
28780
- headers: { "Content-Type": "application/json" },
28780
+ headers: {
28781
+ "Content-Type": "application/json",
28782
+ Authorization: `Bearer ${a}`
28783
+ },
28781
28784
  credentials: "include",
28782
- body: JSON.stringify({ refresh_token: i || "" })
28785
+ body: JSON.stringify({
28786
+ refresh_token: i || ""
28787
+ })
28788
+ }).catch(() => {
28783
28789
  });
28784
28790
  } };
28785
28791
  }, gy = Te(/* @__PURE__ */ b("path", {