@arbidocs/sdk 0.5.21 → 0.5.23

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 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();