Skip to content

Commit

Permalink
Attempt to satisfy Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Mar 6, 2024
1 parent 523ee9c commit c82a779
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/webauthn/public_key_credential_with_assertion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def self.response_class
WebAuthn::AuthenticatorAssertionResponse
end

def verify(challenge, expected_origin: nil, public_key:, sign_count:, user_verification: nil, rp_id: (appid_extension_output ? appid : nil))
def verify(challenge, expected_origin: nil, public_key:, sign_count:,
user_verification: nil, rp_id: (appid_extension_output ? appid : nil))
super

response.verify(
Expand Down
4 changes: 2 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,10 @@ def self.response_class
WebAuthn::AuthenticatorAttestationResponse
end

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

response.verify(encoder.decode(challenge), expected_origin, **kw)
response.verify(encoder.decode(challenge), expected_origin, **keywords)

true
end
Expand Down

0 comments on commit c82a779

Please sign in to comment.