@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 +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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];
|