@truly-you/trulyyou-web-sdk 0.1.11 → 0.1.13

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.11",
3
+ "version": "0.1.13",
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
 
@@ -726,6 +726,13 @@ export class TrulyYouSDK {
726
726
  })
727
727
  form.appendChild(brandingInput)
728
728
 
729
+ // Add authFlowId so sign page can retrieve keyId from localStorage
730
+ const authFlowIdInput = document.createElement('input')
731
+ authFlowIdInput.type = 'hidden'
732
+ authFlowIdInput.name = 'authFlowId'
733
+ authFlowIdInput.value = this.brandingCache?.authFlowId || ''
734
+ form.appendChild(authFlowIdInput)
735
+
729
736
  // Mobile device logic (mock mobile OR actual mobile - both treated the same)
730
737
  const isMobile = this.mockMobileDevice || !this.isDesktopDevice()
731
738