diff --git a/main.py b/main.py index 1e3ea91..f4607f5 100644 --- a/main.py +++ b/main.py @@ -46,6 +46,7 @@ from getpass import getpass import sys import ctypes from fido2.ctap2 import Ctap2 +import nfc config = configparser.ConfigParser() @@ -104,6 +105,13 @@ class CliInteraction(UserInteraction): print("User Verification required.") return True +try: + clf = nfc.ContactlessFrontend('usb') # Ensure this matches your connection + print("NFC reader initialized.") +except Exception as e: + print("Failed to initialize NFC reader:", e) + + while True: