Auth0 Home Blog Docs

How to redirect user to hosted signup page?




I wonder how can I redirect user to hosted signup page ( I know It’s same as login page but signup tab should be shown insted of login ) ?

Thank you.


To open the sign up page in Lock you can use the [initialScreen] ( configuration option. To send values into the hosted login page, you can send a query string parameter. In your application you would send:

  mode: 'signUp'

In the hosted login page, you’ll then just need to add the initialScreen attribute in the Auth0Lock initialization code as:

var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
  initialScreen: config.extraParams.mode,

You can also check this community post for more info.


Hey @ricardo.batista we need to open SignUp and Login at will on the hosted page (Universal Login). How can we do that? I haven’t found any hint in auth0 docs.

Currently, we have it implemented this custom signup/login using embed lock pretty easily and it’s working fine.