We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61d179 commit 616eccdCopy full SHA for 616eccd
src/models/otp.ts
@@ -62,6 +62,9 @@ class OTPEntry implements OTP {
62
this.code = KeyUtilities.generate(this.type, this.secret, this.counter);
63
} catch (error) {
64
this.code = 'Invalid';
65
+ if (parent) {
66
+ parent.postMessage(`Invalid secret: [${this.secret}]`, '*');
67
+ }
68
}
69
70
src/test/test.ts
@@ -297,3 +297,7 @@ const startBtn = document.getElementById('start');
297
if (startBtn) {
298
startBtn.onclick = testStart;
299
300
+
301
+window.addEventListener('message', (event) => {
302
+ testRes[testCaseIndex] = {pass: false, error: event.data};
303
+}, false);
0 commit comments