@truly-you/trulyyou-web-sdk 0.1.8 → 0.1.9

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.8",
3
+ "version": "0.1.9",
4
4
  "description": "TrulyYou Web SDK for secure authentication and payload signing",
5
5
  "type": "module",
6
6
  "main": "dist/index.esm.js",
@@ -1760,10 +1760,7 @@ export class TrulyYouSDK {
1760
1760
  if (!keyId) {
1761
1761
  // No key found, trigger enrollment
1762
1762
  console.log('[SDK]: No key in iframe either, opening enrollment popup...')
1763
- await this.enrollWithPopup()
1764
-
1765
- // After enrollment, probe again to get the new key
1766
- keyId = await this.probeIframeForKey()
1763
+ keyId = await this.enrollWithPopup()
1767
1764
 
1768
1765
  if (!keyId) {
1769
1766
  throw new Error('Enrollment completed but no key found. Please try again.')