@adminforth/two-factors-auth 2.2.0 → 2.2.2

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
@@ -14,5 +14,5 @@ custom/package.json
14
14
  custom/tsconfig.json
15
15
  custom/utils.js
16
16
 
17
- sent 269,443 bytes received 191 bytes 539,268.00 bytes/sec
18
- total size is 268,697 speedup is 1.00
17
+ sent 269,512 bytes received 191 bytes 539,406.00 bytes/sec
18
+ total size is 268,776 speedup is 1.00
@@ -13,7 +13,7 @@
13
13
  >
14
14
  <template #cell:name="{item}">
15
15
  <div class="flex items-center justify-start space-x-2">
16
- <img class="max-h-6" :src="coreStore.theme === 'light' ? item.light_icon : item.dark_icon" />
16
+ <img class="max-h-6 max-w-6" :src="coreStore.theme === 'light' ? item.light_icon : item.dark_icon" />
17
17
  <p>{{ item.name }}</p>
18
18
  </div>
19
19
  </template>
@@ -377,6 +377,7 @@
377
377
  async function callWebAuthn(options: any) {
378
378
  let credential;
379
379
  try {
380
+ console.log('Creating credential with options:', options);
380
381
  credential = await navigator.credentials.create({
381
382
  publicKey: options
382
383
  });
@@ -13,7 +13,7 @@
13
13
  >
14
14
  <template #cell:name="{item}">
15
15
  <div class="flex items-center justify-start space-x-2">
16
- <img class="max-h-6" :src="coreStore.theme === 'light' ? item.light_icon : item.dark_icon" />
16
+ <img class="max-h-6 max-w-6" :src="coreStore.theme === 'light' ? item.light_icon : item.dark_icon" />
17
17
  <p>{{ item.name }}</p>
18
18
  </div>
19
19
  </template>
@@ -377,6 +377,7 @@
377
377
  async function callWebAuthn(options: any) {
378
378
  let credential;
379
379
  try {
380
+ console.log('Creating credential with options:', options);
380
381
  credential = await navigator.credentials.create({
381
382
  publicKey: options
382
383
  });
package/dist/index.js CHANGED
@@ -516,7 +516,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
516
516
  throw new Error('Verification failed.');
517
517
  }
518
518
  const { aaguid, credential, credentialBackedUp } = registrationInfo;
519
- const provider_name = ((_g = aaguids[aaguid]) === null || _g === void 0 ? void 0 : _g.name) || 'Unknown';
519
+ const provider_name = ((_g = aaguids[aaguid]) === null || _g === void 0 ? void 0 : _g.name) || 'Unknown provider';
520
520
  const credentialPublicKey = credential.publicKey;
521
521
  const credentialID = credential.id;
522
522
  const base64CredentialID = credentialID;
package/index.ts CHANGED
@@ -562,7 +562,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
562
562
  credential,
563
563
  credentialBackedUp
564
564
  } = registrationInfo;
565
- const provider_name = aaguids[aaguid]?.name || 'Unknown';
565
+ const provider_name = aaguids[aaguid]?.name || 'Unknown provider';
566
566
  const credentialPublicKey = credential.publicKey;
567
567
  const credentialID = credential.id;
568
568
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",