lib/rodauth/features/json.rb in rodauth-2.29.0 vs lib/rodauth/features/json.rb in rodauth-2.30.0

- old
+ new

@@ -114,10 +114,10 @@ end end def before_webauthn_login_route super if defined?(super) - if use_json? && !param_or_nil(webauthn_auth_param) && account_from_login(param(login_param)) + if use_json? && !param_or_nil(webauthn_auth_param) && webauthn_login_options? cred = webauthn_credential_options_for_get json_response[webauthn_auth_param] = cred.as_json json_response[webauthn_auth_challenge_param] = cred.challenge json_response[webauthn_auth_challenge_hmac_param] = compute_hmac(cred.challenge) end