Auth0 Home Blog Docs

Lock.js how to default tab to Sign Up?



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?


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'


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


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