Authorize set default view as register

Since you’re using the older auth0-js, the easiest is:

If you want to always show the signup page by default, simply hardcode

This needs to be set in Auth0 > Dashboard > Universal Login > Login > Customize Login Page (not in the client code / authorize request made from the client via auth0-js - I guess that’s the reason why it didn’t work when you tested it):

If you want to keep it dynamic based on the request made from the client, you can use the mode parameter - note that it must be put as option in the authorize method call, not in the constructor of the webAuth object (I guess that’s the reason why it didn’t work when you tested it):

  login(customState) {
    webAuth.authorize({
      appState: customState,
      mode: 'signUp'
    });
  }

Related: