# Alternative to loginWithRedirect for the auth0 React SDK that instead defaults to the sign up page

**URL:** <https://community.auth0.com/t/alternative-to-loginwithredirect-for-the-auth0-react-sdk-that-instead-defaults-to-the-sign-up-page/67954>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [August 15, 2021, 1:46am UTC](https://community.auth0.com/t/alternative-to-loginwithredirect-for-the-auth0-react-sdk-that-instead-defaults-to-the-sign-up-page/67954 "2021-08-15T01:46:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivaw.1953](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/olivaw.1953/32/12898_2.png) [@olivaw.1953](https://community.auth0.com/u/olivaw.1953)\
**Post date:** [August 15, 2021, 1:46am UTC](https://community.auth0.com/t/alternative-to-loginwithredirect-for-the-auth0-react-sdk-that-instead-defaults-to-the-sign-up-page/67954/1 "2021-08-15T01:46:54Z")

</div>

I have two seperate buttons on my web app’s home page, one that says “sign up” and one that says “log in”. For the login button, I’m able to use the loginWithRedirect function from the useAuth0 hook. However, when it comes to the signup button, there doesn’t seem to be an equivalent signupWithRedirect function. I know I could just use loginWithRedirect and have user click the tiny “Sign up” link on the universal login page(pictured below), however that’s a bad user experience. How can I create a sign up button using the React sdk?

**PS: How do I disable the “continue with google” button?** (circled below as well)

 ![signuplink](https://global.discourse-cdn.com/auth0/original/3X/8/2/820f1be2ae4b5d8a78c246875658381af549fa25.png)

---

<div class="post-metadata">

**Author:** ![angelica.bocanegra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/angelica.bocanegra/32/12751_2.png) [@angelica.bocanegra](https://community.auth0.com/u/angelica.bocanegra)\
**Post date:** [August 16, 2021, 3:11am UTC](https://community.auth0.com/t/alternative-to-loginwithredirect-for-the-auth0-react-sdk-that-instead-defaults-to-the-sign-up-page/67954/2 "2021-08-16T03:11:47Z")

</div>

Hey for the new UL experience to get users to go to the sign up page you can use the loginWithRedirect function with `screen_hint`…

`loginWithRedirect({ screen_hint: 'signup' })`

Some docs about sign up for the new login experience:

> **[New Universal Login Experience](https://auth0.com/docs/authenticate/login/auth0-universal-login/new-experience)**
>
> New Universal Login Experience

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 16, 2021, 7:18am UTC](https://community.auth0.com/t/alternative-to-loginwithredirect-for-the-auth0-react-sdk-that-instead-defaults-to-the-sign-up-page/67954/3 "2021-08-16T07:18:33Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 26, 2021, 9:16am UTC](https://community.auth0.com/t/alternative-to-loginwithredirect-for-the-auth0-react-sdk-that-instead-defaults-to-the-sign-up-page/67954/4 "2021-08-26T09:16:37Z")

</div>


