@ikonai/sdk-react-ui 1.0.45 → 1.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/app/use-ikon-app.d.ts +3 -2
- package/index.js +3 -4
- package/package.json +1 -1
package/app/use-ikon-app.d.ts
CHANGED
|
@@ -66,8 +66,9 @@ export interface UseIkonAppOptions {
|
|
|
66
66
|
*/
|
|
67
67
|
websocket?: boolean;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
69
|
+
* Enable WebTransport. Off by default — WebTransport has proven unreliable on
|
|
70
|
+
* bad networks. Set to `true` to opt in (also selectable at runtime with
|
|
71
|
+
* `?ikon-webtransport=true`). When unset or `false`, the SDK uses WebSocket only.
|
|
71
72
|
*/
|
|
72
73
|
webtransport?: boolean;
|
|
73
74
|
/**
|
package/index.js
CHANGED
|
@@ -2447,8 +2447,8 @@ function io(t) {
|
|
|
2447
2447
|
try {
|
|
2448
2448
|
const e = t.split(".");
|
|
2449
2449
|
if (e.length !== 3) return !0;
|
|
2450
|
-
const r = JSON.parse(atob(
|
|
2451
|
-
return typeof
|
|
2450
|
+
const r = e[1].replace(/-/g, "+").replace(/_/g, "/"), n = r + "=".repeat((4 - r.length % 4) % 4), o = JSON.parse(atob(n));
|
|
2451
|
+
return typeof o.exp != "number" ? !1 : Date.now() >= o.exp * 1e3 - so;
|
|
2452
2452
|
} catch {
|
|
2453
2453
|
return !0;
|
|
2454
2454
|
}
|
|
@@ -2544,8 +2544,7 @@ function uo() {
|
|
|
2544
2544
|
return e && r ? { token: e, provider: r } : null;
|
|
2545
2545
|
}
|
|
2546
2546
|
function lo() {
|
|
2547
|
-
|
|
2548
|
-
return e ? decodeURIComponent(e) : null;
|
|
2547
|
+
return new URLSearchParams(window.location.search).get("error");
|
|
2549
2548
|
}
|
|
2550
2549
|
function mt() {
|
|
2551
2550
|
window.history.replaceState({}, "", window.location.pathname);
|