lib/rodauth/features/webauthn_verify_account.rb in rodauth-2.8.0 vs lib/rodauth/features/webauthn_verify_account.rb in rodauth-2.9.0
- old
+ new
@@ -27,10 +27,10 @@
private
def before_verify_account
super
- if features.include?(:jwt) && use_jwt? && !param_or_nil(webauthn_setup_param)
+ if features.include?(:json) && use_json? && !param_or_nil(webauthn_setup_param)
cred = new_webauthn_credential
json_response[webauthn_setup_param] = cred.as_json
json_response[webauthn_setup_challenge_param] = cred.challenge
json_response[webauthn_setup_challenge_hmac_param] = compute_hmac(cred.challenge)
end