@adminforth/two-factors-auth 2.9.11 → 2.9.12

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/dist/index.js CHANGED
@@ -463,7 +463,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
463
463
  }
464
464
  const passkeyRecord = yield this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
465
465
  if (!passkeyRecord) {
466
- return { error: 'No registered passkey found, probably it was removed' };
466
+ return { error: 'No such passkey found, most likeley it was removed on this website but you still have it on your device' };
467
467
  }
468
468
  const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];
469
469
  if (!userPk) {
package/index.ts CHANGED
@@ -506,7 +506,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
506
506
 
507
507
  const passkeyRecord = await this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
508
508
  if (!passkeyRecord) {
509
- return { error: 'No registered passkey found, probably it was removed' };
509
+ return { error: 'No such passkey found, most likeley it was removed on this website but you still have it on your device' };
510
510
  }
511
511
 
512
512
  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.9.11",
3
+ "version": "2.9.12",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",