@ikonai/sdk 1.0.47 → 1.0.48

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4536,14 +4536,14 @@ function vf() {
4536
4536
  }
4537
4537
  const Of = {
4538
4538
  name: "ikon.client.logout",
4539
- description: "Clear the auth session and reload the page to return to the login screen",
4539
+ description: "Clear the auth session and return to the login screen at the site root",
4540
4540
  returnType: { kind: "boolean" }
4541
4541
  };
4542
4542
  function Uf() {
4543
4543
  if (typeof window > "u" || !window.localStorage)
4544
4544
  return !1;
4545
4545
  try {
4546
- return window.localStorage.clear(), setTimeout(() => window.location.reload(), 100), !0;
4546
+ return window.localStorage.clear(), setTimeout(() => window.location.replace(window.location.origin + "/"), 100), !0;
4547
4547
  } catch {
4548
4548
  return !1;
4549
4549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonai/sdk",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",