# Strategy to redirect to universal login conditionally after gathering email

**URL:** <https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [January 22, 2025, 10:56pm UTC](https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866 "2025-01-22T22:56:28Z")\
**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 22, 2025, 10:56pm UTC](https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866/1 "2025-01-22T22:56:28Z")

</div>

We have an app with two types of users accessing a React app. We want type A to login through our own login page, use our own data, etc. We want type B to authenticate with Auth0. We need the user to enter their email when they arrive to our app to determine whether they are of type A or B. If the user is redirected to Universal Login, we don’t want them to have to re-enter their email address. Is there a way to pass the users’ email in the redirect, and have universal login only prompt them for a password? Should we just use the Authenticate API to log in the user directly (even if that doesn’t get us out-of-the-box MFA, etc)?

---

<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 22, 2025, 11:04pm UTC](https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866/3 "2025-01-22T23:04:57Z")

</div>

Hi @capndave,

You can pass the `login_hint` query parameter with the user’s email address when redirecting them to the Universal Login for authentication.

This will populate the email address field with the value you passed in the request.

(Reference: [Universal Login Experience](https://auth0.com/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/universal-experience#:~:text=You%20can%20specify%20the%20login_hint%20when%20redirecting%20to%20Auth0%20and%20use%20this%20information%20to%20populate%20the%20username/email%20field%20for%20the%20login%20or%20signup%20page.))

Thanks,  
Rueben

---

<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 23, 2025, 1:59pm UTC](https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866/4 "2025-01-23T13:59:38Z")

</div>

Very helpful! Can I pass the organization in with the login\_hint as well? Are there detailed login\_hint docs somewhere?

---

<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 6, 2025, 1:59pm UTC](https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866/5 "2025-02-06T13:59:50Z")

</div>

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

---

<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:** [February 13, 2025, 8:21pm UTC](https://community.auth0.com/t/strategy-to-redirect-to-universal-login-conditionally-after-gathering-email/169866/6 "2025-02-13T20:21:07Z")

</div>

Hi @capndave,

Yes, most definitely. It would look something like the following:

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

```

Yes, [this doc](https://auth0.com/docs/authenticate/login/auth0-universal-login/universal-login-vs-classic-login/universal-experience#:~:text=You%20can%20specify%20the%20login_hint%20when%20redirecting%20to%20Auth0%20and%20use%20this%20information%20to%20populate%20the%20username/email%20field%20for%20the%20login%20or%20signup%20page.) mentions the `login_hint` usage with the Universal Login Experience.

Thanks,  
Rueben
