How can I use auth0.js to get the connection settings so i can display the email and password field if Username-Password-Authentication is checked and remove others if they arent checked?
Unfortunately, the auth0.js library does not have a function to query for an application’s connection settings directly.
Instead, you’ll need to use the Management API v2 get a connection endpoint to search for the enabled_clients property in the response object for your Username-Password-Authentication connection and see whether the application is a part of the list. If so, then you can proceed with displaying the email and password field.