From c82a77953661173f84135a1afaa7be24eca328f6 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 6 Mar 2024 13:56:35 -0800 Subject: [PATCH] Attempt to satisfy Rubocop --- lib/webauthn/public_key_credential_with_assertion.rb | 3 ++- lib/webauthn/public_key_credential_with_attestation.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/webauthn/public_key_credential_with_assertion.rb b/lib/webauthn/public_key_credential_with_assertion.rb index f510c99d..3f3a649d 100644 --- a/lib/webauthn/public_key_credential_with_assertion.rb +++ b/lib/webauthn/public_key_credential_with_assertion.rb @@ -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( diff --git a/lib/webauthn/public_key_credential_with_attestation.rb b/lib/webauthn/public_key_credential_with_attestation.rb index 7902b3b6..01fbb694 100644 --- a/lib/webauthn/public_key_credential_with_attestation.rb +++ b/lib/webauthn/public_key_credential_with_attestation.rb @@ -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