@sparkvault/sdk-js 8.10.4 → 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 +2 -1
- package/dist/products/identity/index.d.ts +2 -1
- package/dist/products/identity/types.d.ts +3 -1
- package/dist/sparkvault.cjs.js +6 -2
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +6 -2
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
@@ -207,7 +207,9 @@ export interface SdkConfig {
|
|
|
207
207
|
/** WebSocket domain for SparkLink push notifications (e.g., 'ws.sparkvault.com') */
|
|
208
208
|
wsDomain?: string;
|
|
209
209
|
/** Cross-domain SSO posture. `enabled`: this account participates in silent
|
|
210
|
-
* SSO. `forced`: auth.sv is the only sign-in surface (no local widget UI).
|
|
210
|
+
* SSO. `forced`: auth.sv is the only sign-in surface (no local widget UI).
|
|
211
|
+
* Informational: the server enforces `enabled` on its SSO endpoints; the
|
|
212
|
+
* SDK does not currently branch on either flag. */
|
|
211
213
|
sso?: {
|
|
212
214
|
enabled: boolean;
|
|
213
215
|
forced: boolean;
|
package/dist/sparkvault.cjs.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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 } : {}),
|