@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/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 +1 -4
package/package.json
CHANGED
package/src/sdk/TrulyYouSDK.ts
CHANGED
|
@@ -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.')
|