export function passkeyDescription(key, index) { const transports = key.transports || []; const methods = []; if (transports.includes("internal")) methods.push("device unlock"); if (transports.includes("hybrid")) methods.push("qr code from another device"); if (transports.some((value) => ["usb", "nfc", "ble"].includes(value))) methods.push("security key"); return "passkey " + (index + 1) + " \xB7 " + (methods.join(", ") || "authenticator"); }