@truly-you/trulyyou-web-sdk 0.1.14 → 0.1.15

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.14",
3
+ "version": "0.1.15",
4
4
  "description": "TrulyYou Web SDK for secure authentication and payload signing",
5
5
  "type": "module",
6
6
  "main": "dist/index.esm.js",
@@ -322,9 +322,12 @@ export class TrulyYouSDK {
322
322
  const handleMessage = async (event: MessageEvent) => {
323
323
  const data = event.data as any
324
324
 
325
- // Only log probe-related messages to avoid spam
325
+ // Log ALL messages during probe to debug
326
+ console.log('[SDK-PROBE-DEBUG]: Message received - type:', data?.type, 'origin:', event.origin, 'data:', data)
327
+
328
+ // Only process probe-related messages
326
329
  if (data?.type === 'KEY_CHECK_RESULT' || data?.type === 'KEY_CHECK_FAILED') {
327
- console.log('[SDK-PROBE]: Received message:', event.data, 'from origin:', event.origin)
330
+ console.log('[SDK-PROBE]: Processing probe message:', event.data, 'from origin:', event.origin)
328
331
 
329
332
  try {
330
333
  const frontendOrigin = new URL(this.frontendUrl).origin