diff --git a/lib/webauthn_components/authentication_component.ex b/lib/webauthn_components/authentication_component.ex index 87a3407..383cc8f 100644 --- a/lib/webauthn_components/authentication_component.ex +++ b/lib/webauthn_components/authentication_component.ex @@ -139,7 +139,7 @@ defmodule WebauthnComponents.AuthenticationComponent do challenge = Wax.new_authentication_challenge( - origin: endpoint.url, + origin: endpoint.url(), rp_id: :auto, user_verification: "preferred" ) diff --git a/lib/webauthn_components/registration_component.ex b/lib/webauthn_components/registration_component.ex index d810dbf..ee96a6b 100644 --- a/lib/webauthn_components/registration_component.ex +++ b/lib/webauthn_components/registration_component.ex @@ -126,7 +126,7 @@ defmodule WebauthnComponents.RegistrationComponent do challenge = Wax.new_registration_challenge( attestation: attestation, - origin: endpoint.url, + origin: endpoint.url(), rp_id: :auto, trusted_attestation_types: [:none, :basic] )