@placeos/ts-client 4.7.6 → 4.7.7
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/auth/functions.ts +5 -3
package/dist/index.es.js
CHANGED
|
@@ -2147,9 +2147,11 @@ function X(t = !0) {
|
|
|
2147
2147
|
const e = I.getItem(`${q}_expires_at`) || "", n = De.getValue();
|
|
2148
2148
|
return cs(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), qn(), S.load_authority || (qt += 1, oe(
|
|
2149
2149
|
"re-authorise",
|
|
2150
|
-
() =>
|
|
2151
|
-
|
|
2152
|
-
|
|
2150
|
+
async () => {
|
|
2151
|
+
delete S.authorise, await qr().catch(
|
|
2152
|
+
(r) => d("Auth", `Failed to get token: ${r}`)
|
|
2153
|
+
);
|
|
2154
|
+
},
|
|
2153
2155
|
200 * Math.min(20, qt)
|
|
2154
2156
|
)), !t) ? "" : n || I.getItem(`${q}_access_token`) || "";
|
|
2155
2157
|
}
|