Skip to content

Commit

Permalink
Fix dataclass usage for extension outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Nov 5, 2024
1 parent 214b692 commit cad07d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def request_uv(self, permissions, rd_id):
credentials = [auth_data.credential_data]

# PRF result:
sign_result = result.extension_results.get("sign")
sign_result = result.extension_results.sign
print("CREATE sign result", sign_result)
sign_key = sign_result.generated_key
if not sign_key:
Expand Down Expand Up @@ -163,7 +163,7 @@ def request_uv(self, permissions, rd_id):
# Only one cred in allowCredentials, only one response.
result = result.get_response(0)

sign_result = result.extension_results["sign"]
sign_result = result.extension_results.sign
print("GET sign result", sign_result)

print("Test verify signature", sign_result.get("signature"))
Expand Down

0 comments on commit cad07d1

Please sign in to comment.