# Login\_hint not working with loginWithRedirect and Universal Login

**URL:** <https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [January 28, 2025, 5:52pm UTC](https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989 "2025-01-28T17:52:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![capndave](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/capndave/32/60163_2.png) [@capndave](https://community.auth0.com/u/capndave)\
**Post date:** [January 28, 2025, 5:52pm UTC](https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989/1 "2025-01-28T17:52:01Z")

</div>

We must use the Universal Login because we need to support organizations. I’m calling loginWithRedirect as shown below. The password is not auto-filling. I have tried the advice mentioned [here](https://community.auth0.com/t/can-you-add-a-login-hint-to-new-universal-login-using-passwordless-flow/99432) but it appears that when I toggle the “Customize Login Page” button it enables classic login (instead of universal). Then when the app redirects I get an error message that classic login does not support organizations. Is there a way to auto-populate the email field while still using the universal login?

```auto
const options = {
    authorizationParams: { organization: organizationId },
    login_hint: email@email.com
};
auth0.loginWithRedirect(options);

```

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [January 28, 2025, 7:20pm UTC](https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989/3 "2025-01-28T19:20:23Z")

</div>

Hi @capndave

Thank you for posting your question on the Auth0 Community!

I am a little bit confused from your post, currently do you have issues in auto-filling the email or password field?

As I can see in the code provided , if you pass the login\_hint in the parameters of the redirect url, the email address should be filled in, as seen in the example below:

````auto
https://[Tenant].auth0.com/authorize?client_id=[Client ID]&response_type=token%20id_token&redirect_uri=https://jwt.io&scope=openid&login_hint=user1@gmail.com&state=1234&nonce=5678```

````

However, if you are having issues with auto-filling the password, I believe that feature is not available at this time while using the **Universal Login** and only the **prefill** option would do the trick which is only available for **Classing Login**.

You might want to look into [Password Autocomplete](https://auth0.com/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/universal-experience#password-autocomplete) in our documentation which I believe suits your use case.

If you have any extra questions on the matter, feel free to leave a reply.

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![capndave](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/capndave/32/60163_2.png) [@capndave](https://community.auth0.com/u/capndave)\
**Post date:** [January 29, 2025, 7:30pm UTC](https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989/4 "2025-01-29T19:30:37Z")

</div>

Hi Nik. We’re just trying to auto-fill the email field. In my original post, does the options object we’re passing to the `loginWithRedirect` method look correct?

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [January 29, 2025, 8:13pm UTC](https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989/5 "2025-01-29T20:13:07Z")

</div>

Hi @capndave

Your loginWithRedirect method looks fine. If the email field is not being auto-filled, you can try the following:

```auto
const options = {
    authorizationParams: { 
    organization: organizationId,
    login_hint: email@email.com
    }
};
auth0.loginWithRedirect(options);

```

The issue might be that the login\_hint is a parameter used for [authorizationParams](https://auth0.github.io/auth0-react/interfaces/AuthorizationParams.html) and not part of the options used for `loginWithRedirect()`.

`loginWithRedirect()` option’s uses the [RedirectLoginOptions](https://auth0.github.io/auth0-react/interfaces/RedirectLoginOptions.html) parameters which are:

```auto
interface RedirectLoginOptions<TAppState> {
    appState?: TAppState;
    authorizationParams?: AuthorizationParams;
    fragment?: string;
    openUrl?: ((url) => void | Promise<void>);
}

```

However, I believe both of these should work in your use case.

Please let me know if you have any other questions or still having difficulties with the email auto-fill.

Kind Regards,  
Nik

---

<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:** [February 12, 2025, 8:13pm UTC](https://community.auth0.com/t/login-hint-not-working-with-loginwithredirect-and-universal-login/174989/6 "2025-02-12T20:13:32Z")

</div>

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