mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-24 16:32:20 -04:00
Update browser extension passkey replace flow (#1685)
This commit is contained in:
committed by
Leendert de Borst
parent
d3e641c6e9
commit
8477c4250b
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user