@adminforth/two-factors-auth 2.0.5 → 2.0.6
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 69,
|
|
17
|
-
total size is 69,
|
|
16
|
+
sent 69,822 bytes received 172 bytes 139,988.00 bytes/sec
|
|
17
|
+
total size is 69,191 speedup is 0.99
|
|
@@ -298,15 +298,18 @@
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
async function authenticate(options) {
|
|
301
|
+
console.log("Authenticating with options:", options);
|
|
301
302
|
try {
|
|
302
303
|
const abortController = new AbortController();
|
|
303
304
|
const credential = await navigator.credentials.get({
|
|
304
305
|
publicKey: options,
|
|
305
306
|
signal: abortController.signal,
|
|
306
307
|
});
|
|
308
|
+
console.log("Credential obtained:", credential);
|
|
307
309
|
return credential;
|
|
308
310
|
} catch (error) {
|
|
309
|
-
|
|
311
|
+
console.error('Error during authentication:', error);
|
|
312
|
+
adminforth.alert({message: `Error during authentication: ${error}`, variant: 'warning'});
|
|
310
313
|
codeError.value = 'Error during authentication.';
|
|
311
314
|
}
|
|
312
315
|
}
|
|
@@ -298,15 +298,18 @@
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
async function authenticate(options) {
|
|
301
|
+
console.log("Authenticating with options:", options);
|
|
301
302
|
try {
|
|
302
303
|
const abortController = new AbortController();
|
|
303
304
|
const credential = await navigator.credentials.get({
|
|
304
305
|
publicKey: options,
|
|
305
306
|
signal: abortController.signal,
|
|
306
307
|
});
|
|
308
|
+
console.log("Credential obtained:", credential);
|
|
307
309
|
return credential;
|
|
308
310
|
} catch (error) {
|
|
309
|
-
|
|
311
|
+
console.error('Error during authentication:', error);
|
|
312
|
+
adminforth.alert({message: `Error during authentication: ${error}`, variant: 'warning'});
|
|
310
313
|
codeError.value = 'Error during authentication.';
|
|
311
314
|
}
|
|
312
315
|
}
|