# Sign up versus login

**URL:** <https://community.auth0.com/t/sign-up-versus-login/57887>\
**Category:** Get Help\
**Tags:** signup, login, auth0\
**Created:** [February 15, 2021, 3:54pm UTC](https://community.auth0.com/t/sign-up-versus-login/57887 "2021-02-15T15:54:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpcarignan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lpcarignan/32/27510_2.png) [@lpcarignan](https://community.auth0.com/u/lpcarignan)\
**Post date:** [February 15, 2021, 3:54pm UTC](https://community.auth0.com/t/sign-up-versus-login/57887/1 "2021-02-15T15:54:30Z")

</div>

Hi,

I’m using the `auth0/auth0-react` package in my Single Page Application (SPA). I really like the methods `loginWithRedirect` and `loginWithPopup` as they streamline the way I can integrate Auth0 in my application.

But’s there’s one small glitch and I was wondering if anyone had a chance to solve the same issue I’m having.

I can’t seem to differentiate between a login and a sign-up. For me, a login is meant for a registered user coming back to the application while a sign-up is a new user registering a profile in my application. If I want the new user to sign-up, I have to direct him to the Auth0 login screen where there’s a link to sign-up.

This can be a bit non-user-friendly on my Welcome screen where I can’t really display a Sign-up button that would directly link to the sign-up page of Auth0. Yes, I could copy the sign-up link from the login page but it seems more like a hack than a clean implementation.

I’ve looked in the options of both functions named above for ways to indicate I want to do a sign-up. I couldn’t find anything.

Has anyone found a way to separate sign-up and login for a better user experience?

Louis-Philippe

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 16, 2021, 9:13pm UTC](https://community.auth0.com/t/sign-up-versus-login/57887/3 "2021-02-16T21:13:01Z")

</div>

Hi @lpcarignan ,

You can link your users directly to the hosted signup page.

[https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520](https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520)

---

<div class="post-metadata">

**Author:** ![lpcarignan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lpcarignan/32/27510_2.png) [@lpcarignan](https://community.auth0.com/u/lpcarignan)\
**Post date:** [February 17, 2021, 2:15am UTC](https://community.auth0.com/t/sign-up-versus-login/57887/4 "2021-02-17T02:15:42Z")

</div>

Thank you so much for the answer. It worked.

I didn’t see it as I’m coding in Typescript and the typed definition file (`global.d.ts`) for the `auth0-spa-js` package doesn’t specify this parameter.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 17, 2021, 3:49pm UTC](https://community.auth0.com/t/sign-up-versus-login/57887/5 "2021-02-17T15:49:02Z")

</div>

Thanks for providing an update!

---

<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:** [March 4, 2021, 3:50pm UTC](https://community.auth0.com/t/sign-up-versus-login/57887/6 "2021-03-04T15:50:02Z")

</div>

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