@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/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/sdk/TrulyYouSDK.ts +9 -2
package/package.json
CHANGED
package/src/sdk/TrulyYouSDK.ts
CHANGED
|
@@ -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 -
|
|
291
|
-
const probeUrl = new URL(`${this.frontendUrl}/
|
|
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
|
|