# How to force custom domain to be used in login flow

**URL:** <https://community.auth0.com/t/how-to-force-custom-domain-to-be-used-in-login-flow/97417>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [January 3, 2023, 4:53pm UTC](https://community.auth0.com/t/how-to-force-custom-domain-to-be-used-in-login-flow/97417 "2023-01-03T16:53:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![novatech](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/novatech/32/34289_2.png) [@novatech](https://community.auth0.com/u/novatech)\
**Post date:** [January 3, 2023, 4:53pm UTC](https://community.auth0.com/t/how-to-force-custom-domain-to-be-used-in-login-flow/97417/1 "2023-01-03T16:53:05Z")

</div>

We have successfully added a custom domain to our application, however, it’s just unclear how to get to actually work in the login flow.

In our application, the login link still sends to the preset tenant URL  
https://[tenant].us.auth0.com/login…

If I just go to our custom domain, it redirects to our homepage.

The documentation I’ve found so far doesn’t address this step of the process. Where do we control and configure this please?

thank you

---

<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:** [January 3, 2023, 10:14pm UTC](https://community.auth0.com/t/how-to-force-custom-domain-to-be-used-in-login-flow/97417/4 "2023-01-03T22:14:45Z")

</div>

Hi @novatech,

Thanks for reaching out to the Auth0 Community!

> [@novatech](#):
>
> We have successfully added a custom domain to our application, however, it’s just unclear how to get to actually work in the login flow.

To initiate the login flow, you need to begin the request to the `/authorize` endpoint. For example:

```auto
GET https://YOUR_CUSTOM_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope={scope}&
    audience={apiAudience}&
    state={state}
    ADDITIONAL_PARAMETERS

```

Reference doc: [Custom Domain Configuration - Common Questions](https://community.auth0.com/t/custom-domain-configuration-common-questions/82033)

Please let me know if you have any further questions.

Thanks,  
Rueben

---

<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:** [January 17, 2023, 10:15pm UTC](https://community.auth0.com/t/how-to-force-custom-domain-to-be-used-in-login-flow/97417/5 "2023-01-17T22:15:02Z")

</div>

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