@adminforth/two-factors-auth 2.5.4 → 2.5.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
@@ -15,5 +15,5 @@ custom/package.json
15
15
  custom/tsconfig.json
16
16
  custom/utils.js
17
17
 
18
- sent 271,356 bytes received 210 bytes 543,132.00 bytes/sec
18
+ sent 271,363 bytes received 210 bytes 543,146.00 bytes/sec
19
19
  total size is 270,529 speedup is 1.00
package/dist/index.js CHANGED
@@ -418,7 +418,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
418
418
  }
419
419
  const passkeyRecord = yield this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
420
420
  if (!passkeyRecord) {
421
- return { error: 'Passkey not found' };
421
+ return { error: 'No registered passkey found, probably it was removed' };
422
422
  }
423
423
  const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];
424
424
  if (!userPk) {
package/index.ts CHANGED
@@ -460,7 +460,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
460
460
 
461
461
  const passkeyRecord = await this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
462
462
  if (!passkeyRecord) {
463
- return { error: 'Passkey not found' };
463
+ return { error: 'No registered passkey found, probably it was removed' };
464
464
  }
465
465
 
466
466
  const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",