@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/sparkvault.esm.js
CHANGED
|
@@ -8570,7 +8570,8 @@ class IdentityModule {
|
|
|
8570
8570
|
/**
|
|
8571
8571
|
* One-click sign-in through the browser's native FedCM account chooser.
|
|
8572
8572
|
*
|
|
8573
|
-
* When the person is already signed into
|
|
8573
|
+
* When the person is already signed into SparkVault Identity (carrying the
|
|
8574
|
+
* SSO hub session on the Identity origin),
|
|
8574
8575
|
* the browser surfaces a "Continue as …" prompt with no popup, redirect, or
|
|
8575
8576
|
* typing. Requires a registered `clientId` in the SDK config and a browser
|
|
8576
8577
|
* with FedCM support — callers should feature-detect with
|
|
@@ -8595,7 +8596,10 @@ class IdentityModule {
|
|
|
8595
8596
|
});
|
|
8596
8597
|
}
|
|
8597
8598
|
const nonce = options.nonce ?? generateState();
|
|
8598
|
-
|
|
8599
|
+
// The FedCM IdP is the IDENTITY origin (where sign-in runs and the SSO hub
|
|
8600
|
+
// cookie lives) — not the auth.sv portal. The config, its endpoints, and
|
|
8601
|
+
// the credentialed accounts fetch must all be same-origin with that cookie.
|
|
8602
|
+
const configURL = `${this.config.identityBaseUrl}/${this.config.accountId}/fedcm/config.json`;
|
|
8599
8603
|
const request = {
|
|
8600
8604
|
identity: { providers: [{ configURL, clientId: this.config.clientId, nonce }] },
|
|
8601
8605
|
...(options.mediation ? { mediation: options.mediation } : {}),
|