Auth0 Home Blog Docs

Lock.js how to default tab to Sign Up?

signup
signing
lockjs

#1

I can’t seem to find this option in the documentation. I can know if someone has a stored local profile and I’d like to default the Auth0 login dialog to the Sign Up tab if a local profile does not exist.

How do I specify at run time which tab to make the selected one?


#2

You can use the Lock initialScreen config option to set the default tab. If a local profile does not exist, you can initialize Lock with the initialScreen set to signUp.

var options = {
  initialScreen: 'signUp'
};

#3

Thanks for the link. I didn’t see it when I browsed the docs!


#4

its helpfull but same time there is popup lock .how to remove this popup?


#5