I’m not familiar with Django but just tried @Carlos_Mostek 's suggestion here and it works
Here is what you need to do
- Add a namespace’d param to your
/authorizecall (the url that register route will redirect to) to indicate the login pageinitialScreenconfiguration option for auth0 Lock used in Universal Login page. for example/authorize?...all_other_params_&mycompany_login_mode=signup - Go to Universal Login section of Auth0 Dashboard and turn on
Customize Login Pagetoggle - Retrieve the namespace’d param be fore you create instance of Auth0Lock
var loginMode = config.extraParams.mycompany_login_mode; - set appropriate
initialScreenoption based on the namespaced param value likeinitialScreen: loginMode && loginMode === 'signup' ? 'signUp' : undefined,
Hope that helps.