# Using auth0.js to get app connection settings

**URL:** <https://community.auth0.com/t/using-auth0-js-to-get-app-connection-settings/73948>\
**Category:** Get Help\
**Tags:** api, passwordless, login, auth0\
**Created:** [November 30, 2021, 1:19am UTC](https://community.auth0.com/t/using-auth0-js-to-get-app-connection-settings/73948 "2021-11-30T01:19:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebere](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ebere/32/25093_2.png) [@ebere](https://community.auth0.com/u/ebere)\
**Post date:** [November 30, 2021, 1:19am UTC](https://community.auth0.com/t/using-auth0-js-to-get-app-connection-settings/73948/1 "2021-11-30T01:19:23Z")

</div>

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?

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/a/3aeebd647652d7d760595282599adc3bd339e586.png)

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

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 30, 2021, 11:12pm UTC](https://community.auth0.com/t/using-auth0-js-to-get-app-connection-settings/73948/3 "2021-11-30T23:12:42Z")

</div>

Hi @ebere,

Thanks for reaching out to the Auth0 Community!

> [@ebere](#):
>
> 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](https://auth0.com/docs/api/management/v2#!/Connections/get_connections_by_id) 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.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 15, 2021, 11:13pm UTC](https://community.auth0.com/t/using-auth0-js-to-get-app-connection-settings/73948/4 "2021-12-15T23:13:08Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
