Skip to content

Commit 651a787

Browse files
committed
fix: improve error message for missing passkey in verifyPasskeyResponse
1 parent 390e0e0 commit 651a787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
460460

461461
const passkeyRecord = await this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
462462
if (!passkeyRecord) {
463-
return { error: 'Passkey not found' };
463+
return { error: 'No registered passkey found, probably it was removed' };
464464
}
465465

466466
const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];

0 commit comments

Comments
 (0)