From f361f8969e81480bf5e3064c44bac394469be1ae Mon Sep 17 00:00:00 2001 From: Aditya Mitra Date: Sun, 3 May 2026 10:04:51 +0300 Subject: [PATCH] Use proper abstraction to access public Key instead of direct JSON access Use proper abstraction to access public Key instead of direct JSON access. Direct JSON access makes the public key a dict instead of PublicKeyCredentialRequestOptions object --- examples/credential.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/credential.py b/examples/credential.py index 61a83850..65ca1e83 100644 --- a/examples/credential.py +++ b/examples/credential.py @@ -78,7 +78,7 @@ request_options, state = server.authenticate_begin(credentials, user_verification=uv) # Authenticate the credential -results = client.get_assertion(request_options["publicKey"]) +results = client.get_assertion(request_options.public_key) # Only one cred in allowCredentials, only one response. result = results.get_response(0)