Auth0 Home Blog Docs

Is there any way to focus signup tab when opening Lock10?

lock-10
signup
login

#1

Ideally I’d like to have a login button and a signup button. When the user clicks login, it opens the Lock modal as usual, but when they click Sign Up, it opens the Lock modal and focuses the Sign Up tab instead. Anyway to achieve this?


#2

You can set the initialScreen to signUp, outlined here:

https://auth0.com/docs/libraries/lock/v10/customization#initialscreen-string-


#3