@arbidocs/sdk 0.5.21 → 0.5.22
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/README.md +4 -0
- package/dist/{browser-4TgMltob.d.cts → browser-6pFZ1KEo.d.cts} +5 -0
- package/dist/{browser-Be_hfP61.d.ts → browser-BTAy2lP0.d.ts} +5 -0
- package/dist/browser.cjs +7 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +7 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -11062,6 +11062,13 @@ var Arbi = class {
|
|
|
11062
11062
|
if (!accessToken) return null;
|
|
11063
11063
|
return { baseUrl: this.options.url, accessToken };
|
|
11064
11064
|
}
|
|
11065
|
+
/**
|
|
11066
|
+
* Re-login silently and resolve the fresh access token (`null` when the session could not be
|
|
11067
|
+
* renewed, which ends it). For a live connection whose token was refused.
|
|
11068
|
+
*/
|
|
11069
|
+
refreshAccess() {
|
|
11070
|
+
return this.client ? this.client.auth.relogin() : Promise.resolve(null);
|
|
11071
|
+
}
|
|
11065
11072
|
// ── Auth headers (for raw fetch operations) ───────────────────────────
|
|
11066
11073
|
getAuthHeaders() {
|
|
11067
11074
|
const client = this.requireClient();
|