# How to change initial screen to Sign Up using auth0-spa-js (universal login)?

**URL:** <https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941>\
**Category:** Get Help\
**Created:** [October 28, 2019, 11:27am UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941 "2019-10-28T11:27:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukas/32/12997_2.png) [@lukas](https://community.auth0.com/u/lukas)\
**Post date:** [October 28, 2019, 11:27am UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/1 "2019-10-28T11:27:51Z")

</div>

Hello, how I can set initial authentication screen on auth0-spa-js? By default it’s always login, however, we would like to open sign up form first in some cases. Any help would be highly appreciated.

```auto
const client = await createAuth0Client({
      domain: REACT_APP_AUTH0_DOMAIN || "",
      client_id: REACT_APP_AUTH0_CLIENT_ID || "",
      redirect_uri: REACT_APP_AUTH0_REDIRECT_URI || "",
      audience: REACT_APP_AUTH0_AUDIENCE_API,
      scope: "openid email profile",
    });

    this.auth0 = client;
  }

  async login() {
    await this.auth0.loginWithRedirect();
  }

  async signup() {
    // How can set it here?
    await this.auth0.loginWithRedirect();
  }

```

---

<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:** [October 28, 2019, 12:13pm UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/3 "2019-10-28T12:13:23Z")

</div>

Hey there @lukas!

Let me find that for you and get back here soon!

---

<div class="post-metadata">

**Author:** ![lukas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukas/32/12997_2.png) [@lukas](https://community.auth0.com/u/lukas)\
**Post date:** [October 28, 2019, 1:32pm UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/4 "2019-10-28T13:32:35Z")

</div>

@konrad.sopala Thank you. I will be waiting!

---

<div class="post-metadata">

**Author:** ![lukas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukas/32/12997_2.png) [@lukas](https://community.auth0.com/u/lukas)\
**Post date:** [October 29, 2019, 2:35pm UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/5 "2019-10-29T14:35:40Z")

</div>

@konrad.sopala Hello, no news on this yet?

---

<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:** [November 15, 2019, 9:46am UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/6 "2019-11-15T09:46:00Z")

</div>

Hey there!

I managed to get some info on this topic. So basically when using new Universal Login not the classic one, unfortunately it’s not possible to change initial screen.

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [November 15, 2019, 10:23am UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/7 "2019-11-15T10:23:22Z")

</div>

Hi @lukas ,

are you using the New ULP or the Classic ULP - it’s not clear from the questions?

For the Classic ULP, the `initialScreen` parameter would be the way to go. But as @konrad.sopala said, it’s only available in the Classic ULP.

[https://auth0.com/docs/libraries/lock/v11/configuration#initialscreen-string-](https://auth0.com/docs/libraries/lock/v11/configuration#initialscreen-string-)

---

<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:** [November 30, 2019, 10:23am UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/8 "2019-11-30T10:23:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 9, 2020, 7:04pm UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/9 "2020-03-09T19:04:56Z")

</div>

Update on this: the **New ULP** now also supports it by passing the following parameter to the authorization request.

```
screen_hint='signup'

```

---

<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:** [March 10, 2020, 9:49am UTC](https://community.auth0.com/t/how-to-change-initial-screen-to-sign-up-using-auth0-spa-js-universal-login/32941/10 "2020-03-10T09:49:36Z")

</div>

Thanks for updating that @mathiasconradt!
