Skip to content

Commit

Permalink
Use explicit keywords for PublicKeyCredentialWithAttestation#verify
Browse files Browse the repository at this point in the history
Maybe this fixes Ruby 3.0 CI.
  • Loading branch information
jeremyevans committed Mar 7, 2024
1 parent c82a779 commit fcfb6b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/webauthn/public_key_credential_with_attestation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ def self.response_class
WebAuthn::AuthenticatorAttestationResponse
end

def verify(challenge, expected_origin: nil, **keywords)
def verify(challenge, expected_origin: nil, user_verification: nil, rp_id: nil)
super

response.verify(encoder.decode(challenge), expected_origin, **keywords)
response.verify(encoder.decode(challenge), expected_origin,
user_verification: user_verification, rp_id: rp_id)

true
end
Expand Down

0 comments on commit fcfb6b2

Please sign in to comment.