Our app design may have two separated buttons "Sign In" and "Register" so we need to open the web authentication screen with "Register" as default
Found the solution..
const authParams = {
scope: AUTH0_SCOPE,
audience: Config.AUTH0_CLIENT_AUDIENCE,
prompt: 'login',
initialScreen: 'signUp'
}
The solution posted does not work. initialScreen is not a valid property of AuthorizeParams. Is there a way to do this? I would have thought webAuth.authorize({ scope: AUTH0_SCOPE, prompt: 'signup' }) would work, but it doesn't.
For posterity's sake, the solution using the "new" Universal Hosted Login experience is
webAuth.authorize({
scope: AUTH0_SCOPE,
screen_hint: 'signup'
})