@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.
- package/index.js +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
|
|
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.
|
|
4546
|
+
return window.localStorage.clear(), setTimeout(() => window.location.replace(window.location.origin + "/"), 100), !0;
|
|
4547
4547
|
} catch {
|
|
4548
4548
|
return !1;
|
|
4549
4549
|
}
|