# Can't use a custom login page with Identifier First”

**URL:** <https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [July 11, 2024, 6:19pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670 "2024-07-11T18:19:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kate688](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kate688](https://community.auth0.com/u/kate688)\
**Post date:** [July 11, 2024, 6:19pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/1 "2024-07-11T18:19:24Z")

</div>

I want to build a login page that verifies the email domain first and then prompts for the password. I followed the instructions in this [post](https://community.auth0.com/t/you-cannot-use-a-custom-login-page-with-identifier-first/125141), but it still didn’t work. I chose the prompt method to login-id, but it always reverts back to the login prompt after refreshing the page. I also selected the identifier first option to ensure it prompts for the email domain first, but it still didn’t work.

 ![Screen Shot 2024-07-11 at 11.10.27 AM](https://global.discourse-cdn.com/auth0/original/3X/c/c/cca2c5cda4d6eb5426cfacc9125e3adf0ea650ed.png)  
 ![Screen Shot 2024-07-11 at 11.10.12 AM](https://global.discourse-cdn.com/auth0/original/3X/a/7/a72b48b7f2c3534b69b29f727014634b17eb4c40.png)

---

<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:** [July 17, 2024, 10:40pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/3 "2024-07-17T22:40:37Z")

</div>

Hi @kate688,

Welcome to the Auth0 Community!

I have checked your tenant’s Universal Login settings and confirm that you have enabled the **New Universal Login experience** with **Identifier First**.

I have also reviewed your second screenshot and can verify that the behavior you experienced is normal. The advanced options page always reverts to the login prompt, regardless of whether you change the prompt before the page refreshes.

As mentioned in [this post](https://community.auth0.com/t/you-cannot-use-a-custom-login-page-with-identifier-first/125141), if you are experiencing the _“You cannot use a custom login page with Identifier First”_ error, you will need to turn off the **Customize Login Page** toggle in your Universal Login settings.

Let us know if you continue to experience issues.

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![kate688](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kate688](https://community.auth0.com/u/kate688)\
**Post date:** [July 17, 2024, 11:36pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/4 "2024-07-17T23:36:34Z")

</div>

Hi Rueben,

I did toggled off the **Customize Login Page**. I am using an Auth0 Organization feature, so I need to identify the user’s email first. Since I toggled off the **Customize Login Page** and set the **New Universal Login experience** with **Identifier First** , the login page still prompt the user the email and password at the same time. If the login prompt in advanced option page always reverts back to original setting, how can I allow a user to enter the email field then prompt the password field.

 ![Screen Shot 2024-07-17 at 4.37.39 PM](https://global.discourse-cdn.com/auth0/original/3X/4/b/4b137cde9b2e0a2c2f3984cef3c9a47b5e6d8c44.png)

---

<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:** [July 22, 2024, 5:12pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/5 "2024-07-22T17:12:13Z")

</div>

Hi @kate688,

Thanks for the reply.

Since you are using the New Universal Login experience with Identifier First, you should not see the page prompt for the email and password at the same time. The user would provide them on different screens.

Could you use the **Try** button on the [_Dashboard \> Branding \> Universal Login \> Customization Options_](https://manage.auth0.com/#/universal-login/customizations/colors) and share a screenshot of that login page?

> [@kate688](#):
>
> If the login prompt in advanced option page always reverts back to original setting, how can I allow a user to enter the email field then prompt the password field.

The page always reverts because it is an interface for making text customizations on the Universal Login. As long as you have saved your changes, the Universal Login page will render them when you log in.

---

<div class="post-metadata">

**Author:** ![kate688](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kate688](https://community.auth0.com/u/kate688)\
**Post date:** [July 22, 2024, 6:09pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/6 "2024-07-22T18:09:23Z")

</div>

Here is how a login page looks. It shows the email and password fields at the same time. !

 ![Screen Shot 2024-07-22 at 11.05.37 AM](https://global.discourse-cdn.com/auth0/original/3X/8/1/81cc23c4649fb71e40ca6679764913d1db1137f9.png)

---

<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:** [July 23, 2024, 5:21pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/7 "2024-07-23T17:21:05Z")

</div>

Hi @kate688,

Thanks for the reply.

The second screenshot you shared shows a preview of the login page but is not the same as the one shown live on your app.

I can confirm this after checking my dashboard’s branding page, which also shows the email and password in the preview.

However, when I click on the **Try** button, it opens a new tab with the login page, and I can see that the identifier first is working.

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

Could you try that and see if it works?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![kate688](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@kate688](https://community.auth0.com/u/kate688)\
**Post date:** [July 25, 2024, 7:56pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/8 "2024-07-25T19:56:36Z")

</div>

Hi Rueben,

Thank you for following up. I resolved the identifier issue but I also have the custom domain problem. I have set up the custom domain in the Auth0 dashboard (see the attachment). However, I am still encountering issues using it.

 ![Screen Shot 2024-07-25 at 6.36.09 PM](https://global.discourse-cdn.com/auth0/original/3X/7/d/7da9004c324d9fd00e9964b1f568a2417ae0a63a.png)

When I changed the domain value in my code to `login.mydomain.com`, and put it in the address bar, it redirected to the my website([mydomain.com](http://mydomain.com)) instead of the Auth0 login page. Could you please help me understand why it redirects to the my website instead of the Auth0 login page? Is there any documentation with Auth0 React SDK that I can use as a reference? Here is my code:`export const Auth0ProviderWithNavigate = ({ children }) =\> {  
const navigate = useNavigate();

```
// const domain = process.env.REACT_APP_AUTH0_DOMAIN;
const domain = 'login.mydomain.com'
const clientId = process.env.REACT_APP_AUTH0_CLIENT_ID;

// const redirectUri = "http://localhost:3000";

const onRedirectCallback = () => {
    navigate('/');
};

return (
    <Auth0Provider
        domain={domain}
        clientId={clientId}
        authorizationParams={{
            redirect_uri: window.location.origin,
            // organization: organizationId 
            audience: 'https://login.mydomain.com/oauth/par',
        }}
        onRedirectCallback={onRedirectCallback}
    > 
        {children}
    </Auth0Provider>
)

```

}`

---

<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:** [July 31, 2024, 9:29pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/9 "2024-07-31T21:29:39Z")

</div>

Hi @kate688,

Thanks for the reply.

I have checked your custom domain settings on our end and can confirm that everything looks good and is configured correctly.

I have also tested your login endpoint using both your canonical and custom domains, and it works to get to your login page.

> [@kate688](#):
>
> Could you please help me understand why it redirects to the my website instead of the Auth0 login page?

You still need to call the login endpoint with your custom domain to get to the login page. For example:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}

```

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:** [August 14, 2024, 9:29pm UTC](https://community.auth0.com/t/cant-use-a-custom-login-page-with-identifier-first/138670/10 "2024-08-14T21:29:47Z")

</div>

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