Can I login without using the auth0 login-widget? and use only the api to login?

To clarify my question

Below is the api that we wanted to avoid,
https://auth0.com/docs/api/authentication#database-ad-ldap-passive-
Because it will redirect us out from our website and go through the auth0 login widget