@sparkvault/sdk-js 8.10.5 → 8.10.6

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.ts CHANGED
@@ -336,7 +336,8 @@ declare class IdentityModule {
336
336
  /**
337
337
  * One-click sign-in through the browser's native FedCM account chooser.
338
338
  *
339
- * When the person is already signed into auth.sv (carrying the SSO session),
339
+ * When the person is already signed into SparkVault Identity (carrying the
340
+ * SSO hub session on the Identity origin),
340
341
  * the browser surfaces a "Continue as …" prompt with no popup, redirect, or
341
342
  * typing. Requires a registered `clientId` in the SDK config and a browser
342
343
  * with FedCM support — callers should feature-detect with
@@ -46,7 +46,8 @@ export declare class IdentityModule {
46
46
  /**
47
47
  * One-click sign-in through the browser's native FedCM account chooser.
48
48
  *
49
- * When the person is already signed into auth.sv (carrying the SSO session),
49
+ * When the person is already signed into SparkVault Identity (carrying the
50
+ * SSO hub session on the Identity origin),
50
51
  * the browser surfaces a "Continue as …" prompt with no popup, redirect, or
51
52
  * typing. Requires a registered `clientId` in the SDK config and a browser
52
53
  * with FedCM support — callers should feature-detect with
@@ -8574,7 +8574,8 @@ class IdentityModule {
8574
8574
  /**
8575
8575
  * One-click sign-in through the browser's native FedCM account chooser.
8576
8576
  *
8577
- * When the person is already signed into auth.sv (carrying the SSO session),
8577
+ * When the person is already signed into SparkVault Identity (carrying the
8578
+ * SSO hub session on the Identity origin),
8578
8579
  * the browser surfaces a "Continue as …" prompt with no popup, redirect, or
8579
8580
  * typing. Requires a registered `clientId` in the SDK config and a browser
8580
8581
  * with FedCM support — callers should feature-detect with
@@ -8599,7 +8600,10 @@ class IdentityModule {
8599
8600
  });
8600
8601
  }
8601
8602
  const nonce = options.nonce ?? generateState();
8602
- const configURL = `${this.config.portalBaseUrl}/${this.config.accountId}/fedcm/config.json`;
8603
+ // The FedCM IdP is the IDENTITY origin (where sign-in runs and the SSO hub
8604
+ // cookie lives) — not the auth.sv portal. The config, its endpoints, and
8605
+ // the credentialed accounts fetch must all be same-origin with that cookie.
8606
+ const configURL = `${this.config.identityBaseUrl}/${this.config.accountId}/fedcm/config.json`;
8603
8607
  const request = {
8604
8608
  identity: { providers: [{ configURL, clientId: this.config.clientId, nonce }] },
8605
8609
  ...(options.mediation ? { mediation: options.mediation } : {}),