# Signup Link - link straight to signup

**URL:** <https://community.auth0.com/t/signup-link-link-straight-to-signup/83606>\
**Category:** Get Help\
**Created:** [May 17, 2022, 3:17pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606 "2022-05-17T15:17:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian.kennedy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ian.kennedy/32/33679_2.png) [@ian.kennedy](https://community.auth0.com/u/ian.kennedy)\
**Post date:** [May 17, 2022, 3:17pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/1 "2022-05-17T15:17:11Z")

</div>

Hi,

I am trying to get a link that would guide users straight to the “Sign Up” instead of “Log in”. The problem I am running into is that each signup link has a (what appears to be) unique “state” value. Here is an example:  
[https://login.gigasheet.com/u/signup?state=hKFo2SBPc2kzLThaVkJ4X2xWQlNVSHFPbkpFR0ZfZWhvTUJhZqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIE9XWnhWaURDOEVlaDI2MENRUkhCLVVSUmNsR1B6ZGowo2NpZNkgWUF5SDJkRDkxbHlKMTRoV3FJV0hkMEZXYlhxQTZWU3A](https://login.gigasheet.com/u/signup?state=hKFo2SBPc2kzLThaVkJ4X2xWQlNVSHFPbkpFR0ZfZWhvTUJhZqFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIE9XWnhWaURDOEVlaDI2MENRUkhCLVVSUmNsR1B6ZGowo2NpZNkgWUF5SDJkRDkxbHlKMTRoV3FJV0hkMEZXYlhxQTZWU3A)

Is there a way to somehow standardize this value, or ensure it is the same every time?

---

<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:** [May 18, 2022, 6:33pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/3 "2022-05-18T18:33:43Z")

</div>

Hi @ian.kennedy,

Thanks for reaching out to the Auth0 Community!

I understand that you would like to generate a URL that brings your users to your sign-up page instead of the login page.

To do so, you will need to use the New Universal Login Experience and specify the `screen_hint=signup` query parameter.

For example:

```auto
https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    scope=SCOPE&
    state=STATE&
    screen_hint=signup

```

See [here](https://auth0.com/docs/authenticate/login/auth0-universal-login/new-experience#signup) to learn more.

Please let me know if you have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![wwzeitler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wwzeitler/32/34122_2.png) [@wwzeitler](https://community.auth0.com/u/wwzeitler)\
**Post date:** [August 4, 2022, 12:52pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/4 "2022-08-04T12:52:02Z")

</div>

How would I do this with passport-auth? (NodeJs/Express)

---

<div class="post-metadata">

**Author:** ![hieunk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hieunk/32/41489_2.png) [@hieunk](https://community.auth0.com/u/hieunk)\
**Post date:** [November 25, 2022, 6:55am UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/5 "2022-11-25T06:55:28Z")

</div>

@rueben.tiow  
i use nuxtjs then i try to get the url signup with function:

```auto
this.$auth.loginWith('auth0', { params: { action: 'signup', screen_hint: 'signup'} })

```

 ![Screen Shot 2022-11-25 at 14.00.39](https://global.discourse-cdn.com/auth0/original/3X/e/5/e5c42fd2fab1e4b641af8528a31f328a4266e931.jpeg)

it still generate path login:

```auto
https://xxxx.us.auth0.com/login?state=xxx&client=xxx&protocol=oauth2&response_type=token&access_type=&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Flogin&scope=openid%20profile%20email&code_challenge_method=&action=signup&screen_hint=signup&audience=https%3A%2F%2Fdev-92n2q07b.us.auth0.com%2Fapi%2Fv2%2F&nonce=I2Ecpk1VZg)

```

---

<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 10, 2023, 6:09pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/6 "2023-01-10T18:09:41Z")

</div>

Hi @hieunk,

Thank you for reaching out about this issue and my apologies for the late reply.

After looking into your tenant, I noticed that you selected the New Universal Login Experience but also toggled on the **Customize Login Page** setting. When this setting is enabled, it will override the New Universal Login Experience with the Classic Universal Login Experience.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/9/2963163feaedbee56e4cd6e759a49b53a4855287.jpeg)

If you prefer to directly send your users to the signup page using the `screen_hint=signup` query parameter, you must make sure that you are using the New Univeral Login experience, which includes turning off the Customize Login page toggle.

I hope this helps!

Please let me know if I can help with anything else.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![adrienjoly](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adrienjoly/32/50494_2.png) [@adrienjoly](https://community.auth0.com/u/adrienjoly)\
**Post date:** [September 2, 2023, 7:30am UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/7 "2023-09-02T07:30:26Z")

</div>

If you want a signup link using Express and [auth0/express-openid-connect: An Express.js middleware to protect OpenID Connect web applications.](https://github.com/auth0/express-openid-connect), here’s how to implement it:

```js
app.get("/signup", (req, res) => {
  res.oidc.login({
    returnTo: "/",
    authorizationParams: { screen_hint: "signup" },
  });
});

```

Cf [How to link directly to Sign-Up · Issue #83 · auth0/express-openid-connect · GitHub](https://github.com/auth0/express-openid-connect/issues/83#issuecomment-799765227)

---

<div class="post-metadata">

**Author:** ![scidec](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@scidec](https://community.auth0.com/u/scidec)\
**Post date:** [November 14, 2023, 1:55am UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/8 "2023-11-14T01:55:22Z")

</div>

Thanks, the hint signup does the trick, but the “state” value now needs to be dealt with explicitly. What event can I map to in c# to take care of this? Otherwise, invalid state error is shown although all the user bits did work and you can then login successfully.

---

<div class="post-metadata">

**Author:** ![brian-allemana](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brian-allemana/32/54646_2.png) [@brian-allemana](https://community.auth0.com/u/brian-allemana)\
**Post date:** [February 8, 2024, 1:41am UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/9 "2024-02-08T01:41:07Z")

</div>

Here’s a tip that Auth0 doesn’t appear to mention in their docs: Your client application must _not_ be associated with more than one authentication database.

I could not get a link that would redirect to the signup page until I turned the client app off on every database but one.

---

<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 8, 2024, 5:01pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/10 "2024-02-08T17:01:26Z")

</div>

Hi @brian-allemana,

Well, it should also be possible to specify the `connection` authorization parameter to induce login for a specific connection.

For example:

```auto
authorizationParams: { 
    screen_hint: "signup",
    connection: "Username-Password-Authentication" 
} 

```

You can verify that it works by passing those query parameters to your login endpoint in the browser:

```auto
https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}&
    connection=Username-Password-Authentication&
    screen_hint=signup

```

I tested this and can confirm that it works.

Let me know if you have any issues with this.

Cheers,  
Rueben

---

<div class="post-metadata">

**Author:** ![brian-allemana](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brian-allemana/32/54646_2.png) [@brian-allemana](https://community.auth0.com/u/brian-allemana)\
**Post date:** [February 8, 2024, 5:47pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/11 "2024-02-08T17:47:45Z")

</div>

Thanks Reuben. I did discover that specifying a db connection in the authorize params allowed the signup redirect to work.

What seems to be the case is that if the client is associated to one db, then _not_ specifying the connection allows redirect to signup with the option to sign in via Social connection. But if you specify the db connection then Social is not an option.

So that means, for redirect to signup to work, the client must be associated with no more than one db connection, or redirect to signup cannot include other connection types.

Is that a correct understanding?

---

<div class="post-metadata">

**Author:** ![mscroggin](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mscroggin](https://community.auth0.com/u/mscroggin)\
**Post date:** [February 16, 2024, 8:34pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/12 "2024-02-16T20:34:10Z")

</div>

Hi Rueben! How would one specify a signup vs login link using the Classic Universal login?

---

<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 27, 2024, 5:11pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/13 "2024-02-27T17:11:33Z")

</div>

Hi @brian-allemana,

That’s correct. If you specify a DB connection in your login request, then that would be the only connection the user is allowed to authenticate against. This means that Social connection options are not available.

Conversely, if you omit the connection parameter in the login request and have more than 1 connection enabled for the client, then it will present all connection types available for them to choose to login.

I hope this explanation is clear!

Cheers,  
Rueben

---

<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 27, 2024, 5:16pm UTC](https://community.auth0.com/t/signup-link-link-straight-to-signup/83606/14 "2024-02-27T17:16:23Z")

</div>

Hi @mscroggin,

You can specify the signup screen on the Classic Universal Login experience by using the `initialScreen` option.

Please refer to our [How do I redirect users directly to the hosted signup page?](https://community.auth0.com/t/how-do-i-redirect-users-directly-to-the-hosted-signup-page/42520) knowledge solution for more details.

Cheers,  
Rueben
