Using auth0.js to get app connection settings

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?

I have looked through the docs but i dont see this detail in the docs, is it not possible to do this?

Hi @ebere,

Thanks for reaching out to the Auth0 Community!

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.

Please let me know how this goes for you.

Thank you.