Update browser extension passkey replace flow (#1685)

This commit is contained in:
Leendert de Borst
2026-02-12 20:31:28 +01:00
committed by Leendert de Borst
parent d3e641c6e9
commit 8477c4250b
2 changed files with 2 additions and 9 deletions

View File

@@ -117,13 +117,6 @@ const PasskeyCreate: React.FC = () => {
}
}
// Also match by username if available (from the credential)
if (data.publicKey.user?.name && passkey.Username) {
if (passkey.Username === data.publicKey.user.name) {
return true;
}
}
// If neither user ID nor username match, exclude this passkey
return false;
});

View File

@@ -57,11 +57,11 @@ export class PasskeyMapper {
Id: row.Id,
ItemId: row.ItemId,
RpId: row.RpId,
UserHandle: row.UserHandle ?? undefined,
UserHandle: row.UserHandle ? new Uint8Array(row.UserHandle) : undefined,
PublicKey: row.PublicKey,
PrivateKey: row.PrivateKey,
DisplayName: row.DisplayName,
PrfKey: row.PrfKey ?? undefined,
PrfKey: row.PrfKey ? new Uint8Array(row.PrfKey) : undefined,
AdditionalData: row.AdditionalData,
CreatedAt: dateToEpoch(row.CreatedAt),
UpdatedAt: dateToEpoch(row.UpdatedAt),