Skip to content

Commit

Permalink
Fix UV check in example
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Sep 20, 2024
1 parent 8803011 commit fb84b73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/resident_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ def request_uv(self, permissions, rd_id):
print("No Authenticator with support for resident key found!")
sys.exit(1)

# Prefer UV if supported
if client.info.options.get("uv"):
# Prefer UV if supported and configured
if client.info.options.get("uv") or client.info.options.get("pinUvAuthToken"):
uv = "preferred"
print("Authenticator supports User Verification")


server = Fido2Server({"id": "example.com", "name": "Example RP"}, attestation="direct")

user = {"id": b"user_id", "name": "A. User"}
Expand Down

0 comments on commit fb84b73

Please sign in to comment.