# Custom domain with new universal login

**URL:** <https://community.auth0.com/t/custom-domain-with-new-universal-login/60034>\
**Category:** Get Help\
**Tags:** new-universal-login, custom-domain\
**Created:** [March 25, 2021, 3:48am UTC](https://community.auth0.com/t/custom-domain-with-new-universal-login/60034 "2021-03-25T03:48:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wahiduzzamankhan007](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wahiduzzamankhan007/32/28329_2.png) [@wahiduzzamankhan007](https://community.auth0.com/u/wahiduzzamankhan007)\
**Post date:** [March 25, 2021, 3:48am UTC](https://community.auth0.com/t/custom-domain-with-new-universal-login/60034/1 "2021-03-25T03:48:31Z")

</div>

Hi 🙂  
I am using the new universal login and I have added my custom domain. But my login page still shows the auth0 subdomain instead of my custom domain that I added.  
Any idea what I am doing wrong?  
Thanks.

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [March 25, 2021, 8:12am UTC](https://community.auth0.com/t/custom-domain-with-new-universal-login/60034/2 "2021-03-25T08:12:26Z")

</div>

Hi @wahiduzzamankhan007

After adding and verifying your custom domain in the dashboard, it just means that it is ready to be used. You’ll then need to change how your application connects to Auth0. Taking Auth0.js as an example, to change from the Auth0 domain to your custom domain, you’d need to put your custom domain in the domain parameter for the [auth0.WebAuth](https://auth0.com/docs/libraries/auth0js#initialization) object:

```
<script type="text/javascript">
  var webAuth = new auth0.WebAuth({
    domain: 'YOUR_CUSTOM_DOMAIN',
    clientID: 'YOUR_CLIENT_ID'
  });
</script>

```

You can read more about how the custom domain works and how it is configured here:

> **[Custom Domains](https://auth0.com/docs/customize/custom-domains)**
>
> Understand how a custom domain (CNAME or vanity URL) can help you unify your brand and show continuity to your users.

> **[Configure Features to Use Custom Domains](https://auth0.com/docs/customize/custom-domains/configure-features-to-use-custom-domains)**
>
> Learn how to configure a custom domain for Auth0 authentication features.

---

<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:** [April 9, 2021, 8:12am UTC](https://community.auth0.com/t/custom-domain-with-new-universal-login/60034/3 "2021-04-09T08:12:58Z")

</div>

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