@truly-you/trulyyou-web-sdk 0.1.10 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truly-you/trulyyou-web-sdk",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "TrulyYou Web SDK for secure authentication and payload signing",
5
5
  "type": "module",
6
6
  "main": "dist/index.esm.js",
@@ -287,8 +287,8 @@ export class TrulyYouSDK {
287
287
  const iframe = document.createElement('iframe')
288
288
  iframe.style.cssText = `position: fixed; top: -9999px; left: -9999px; width: 1px; height: 1px; border: none; opacity: 0; pointer-events: none;`
289
289
 
290
- // Create a probe endpoint URL - we'll use /sign endpoint with a probe flag
291
- const probeUrl = new URL(`${this.frontendUrl}/sign`)
290
+ // Create a probe endpoint URL - use dedicated probe.html for instant response (no React hydration)
291
+ const probeUrl = new URL(`${this.frontendUrl}/probe.html`)
292
292
  probeUrl.searchParams.set('probe', 'true')
293
293
  probeUrl.searchParams.set('origin', origin)
294
294
 
@@ -361,12 +361,12 @@ export class TrulyYouSDK {
361
361
  document.body.appendChild(iframe)
362
362
  console.log('[SDK-PROBE]: Iframe appended to body, waiting for response...')
363
363
 
364
- // Short timeout to keep UX snappy
364
+ // Timeout to allow for React hydration on sign page
365
365
  timeout = setTimeout(() => {
366
- console.log('[SDK-PROBE]: Timeout reached (1500ms), no response from iframe')
366
+ console.log('[SDK-PROBE]: Timeout reached (3000ms), no response from iframe')
367
367
  cleanup()
368
368
  resolve(null)
369
- }, 1500)
369
+ }, 3000)
370
370
  } catch (error) {
371
371
  console.error('[SDK-PROBE]: Error in probeIframeForKey:', error)
372
372
  resolve(null)