@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 +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/build.log
CHANGED
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: '
|
|
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: '
|
|
463
|
+
return { error: 'No registered passkey found, probably it was removed' };
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];
|