@adminforth/two-factors-auth 2.1.4 → 2.1.5

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/build.log CHANGED
@@ -13,5 +13,5 @@ custom/package.json
13
13
  custom/tsconfig.json
14
14
  custom/utils.js
15
15
 
16
- sent 77,390 bytes received 172 bytes 155,124.00 bytes/sec
17
- total size is 76,750 speedup is 0.99
16
+ sent 77,515 bytes received 172 bytes 155,374.00 bytes/sec
17
+ total size is 76,884 speedup is 0.99
@@ -349,8 +349,11 @@
349
349
  }
350
350
  }
351
351
 
352
+ let controller = new AbortController();
353
+
352
354
  async function authenticate(options) {
353
355
  console.log("Authenticating with options:", options);
356
+ controller.abort();
354
357
  try {
355
358
  // Guard: prevent concurrent navigator.credentials.get calls
356
359
  if (webAuthn.inFlight) {
package/custom/utils.js CHANGED
@@ -91,7 +91,10 @@
91
91
  }
92
92
  }
93
93
 
94
+ let controller = new AbortController();
95
+
94
96
  async function authenticate(options) {
97
+ controller.abort();
95
98
  try {
96
99
  const abortController = new AbortController();
97
100
  const credential = await navigator.credentials.get({
@@ -349,8 +349,11 @@
349
349
  }
350
350
  }
351
351
 
352
+ let controller = new AbortController();
353
+
352
354
  async function authenticate(options) {
353
355
  console.log("Authenticating with options:", options);
356
+ controller.abort();
354
357
  try {
355
358
  // Guard: prevent concurrent navigator.credentials.get calls
356
359
  if (webAuthn.inFlight) {
@@ -91,7 +91,10 @@
91
91
  }
92
92
  }
93
93
 
94
+ let controller = new AbortController();
95
+
94
96
  async function authenticate(options) {
97
+ controller.abort();
95
98
  try {
96
99
  const abortController = new AbortController();
97
100
  const credential = await navigator.credentials.get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",