@sparkvault/sdk-js 8.6.0 → 8.6.1
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/products/identity/popup-launcher.d.ts +4 -3
- package/dist/sparkvault.cjs.js +15 -4
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +15 -4
- 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
|
@@ -1347,14 +1347,25 @@ class VerificationState {
|
|
|
1347
1347
|
*
|
|
1348
1348
|
* The single transfer path: synchronous `window.open` inside the user gesture
|
|
1349
1349
|
* (so the browser never blocks it), strict `event.origin` + `data.type`
|
|
1350
|
-
* validation against the caller-supplied trusted origin, a
|
|
1351
|
-
* `window.closed` poll that surfaces a manual
|
|
1350
|
+
* validation against the caller-supplied trusted origin, a 30-minute
|
|
1351
|
+
* abandoned-window backstop, and a `window.closed` poll that surfaces a manual
|
|
1352
|
+
* close as a cancellation.
|
|
1352
1353
|
*/
|
|
1353
1354
|
/** Default popup dimensions — a centered login/ceremony window. */
|
|
1354
1355
|
const DEFAULT_WIDTH = 480;
|
|
1355
1356
|
const DEFAULT_HEIGHT = 640;
|
|
1356
|
-
/**
|
|
1357
|
-
|
|
1357
|
+
/**
|
|
1358
|
+
* Default timeout for popup operations: 30 minutes. This is an
|
|
1359
|
+
* abandoned-window backstop — never a liveness gate. A person mid-login is
|
|
1360
|
+
* often slow for legitimate reasons (waiting out an OTP resend backoff,
|
|
1361
|
+
* fetching their phone for a cross-device passkey, hunting for an alternative
|
|
1362
|
+
* method), and yanking the window away from them mid-flow is far worse than
|
|
1363
|
+
* letting an orphaned promise linger. Active cancellation is handled
|
|
1364
|
+
* elsewhere: the `window.closed` poll catches a manual close within 500ms and
|
|
1365
|
+
* an explicit in-popup cancel posts back immediately; server-side challenge
|
|
1366
|
+
* TTLs (OTP expiry, auth-request lifetime) bound how stale a completion can be.
|
|
1367
|
+
*/
|
|
1368
|
+
const DEFAULT_TIMEOUT_MS = 30 * 60 * 1000;
|
|
1358
1369
|
/** How often to check whether the user closed the popup manually. */
|
|
1359
1370
|
const CLOSED_POLL_INTERVAL_MS = 500;
|
|
1360
1371
|
/**
|