Skip to content

Commit 449394b

Browse files
committed
fix: enhance error message for missing passkey in credential resource
1 parent b237255 commit 449394b

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
@@ -506,7 +506,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
506506

507507
const passkeyRecord = await this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
508508
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' };
510510
}
511511

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

0 commit comments

Comments
 (0)