@passflow/core 0.37.1 → 0.38.0

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.d.cts CHANGED
@@ -7452,6 +7452,19 @@ export declare class Passflow {
7452
7452
  * ```
7453
7453
  */
7454
7454
  getDeliveryMode(): TokenDeliveryMode;
7455
+ /**
7456
+ * The id that identifies this browser or device to Passflow.
7457
+ * It is the same value the SDK sends with every request. It is read from storage;
7458
+ * on first use it is minted and stored, so later calls and page loads return the same id.
7459
+ *
7460
+ * @returns The device id
7461
+ *
7462
+ * @example
7463
+ * ```typescript
7464
+ * const deviceId = passflow.getDeviceId();
7465
+ * ```
7466
+ */
7467
+ getDeviceId(): string;
7455
7468
  /**
7456
7469
  * Restore and validate session for cookie mode on page load.
7457
7470
  * Only applicable when using cookie-based token delivery.
package/dist/index.d.ts CHANGED
@@ -7452,6 +7452,19 @@ export declare class Passflow {
7452
7452
  * ```
7453
7453
  */
7454
7454
  getDeliveryMode(): TokenDeliveryMode;
7455
+ /**
7456
+ * The id that identifies this browser or device to Passflow.
7457
+ * It is the same value the SDK sends with every request. It is read from storage;
7458
+ * on first use it is minted and stored, so later calls and page loads return the same id.
7459
+ *
7460
+ * @returns The device id
7461
+ *
7462
+ * @example
7463
+ * ```typescript
7464
+ * const deviceId = passflow.getDeviceId();
7465
+ * ```
7466
+ */
7467
+ getDeviceId(): string;
7455
7468
  /**
7456
7469
  * Restore and validate session for cookie mode on page load.
7457
7470
  * Only applicable when using cookie-based token delivery.
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ var i = "__passflowAntiBot", a = (e, t) => {
11
11
  if (typeof e != "object" || !e) return;
12
12
  let t = e[i];
13
13
  return typeof t == "object" && t ? t : void 0;
14
- }, s = "0.37.1", c = "X-Passflow-Clientid", l = "Authorization", u = "X-Passflow-DeviceId", d = "X-Passflow-DeviceType", f = "X-Passflow-Anti-Bot", p = "X-Passflow-Agent-Tool", m = "passflow_auth", h = s, g = [
14
+ }, s = "0.38.0", c = "X-Passflow-Clientid", l = "Authorization", u = "X-Passflow-DeviceId", d = "X-Passflow-DeviceType", f = "X-Passflow-Anti-Bot", p = "X-Passflow-Agent-Tool", m = "passflow_auth", h = s, g = [
15
15
  "id",
16
16
  "offline",
17
17
  "openid"
@@ -7780,6 +7780,9 @@ var sa = 10, ca = "The sign-in answered with a PKCE code, but its verifier is go
7780
7780
  getDeliveryMode() {
7781
7781
  return this.authService.tokenDeliveryManager.getMode();
7782
7782
  }
7783
+ getDeviceId() {
7784
+ return this.deviceService.getDeviceId();
7785
+ }
7783
7786
  async restoreSession() {
7784
7787
  return await this.authService.restoreSession();
7785
7788
  }