You can do this with a little workaround using the Classic Universal Login.
Turn on “Customize Login Page”, then replace lock.show() with this snippet.
const urlParams = new URLSearchParams(window.location.search);
let initialScreen = urlParams.get('initialScreen'); // get the query param 'initialScreen'; you can change this any time
initialScreen = initialScreen === 'signUp' ? 'signUp' : 'login'; // if not explicitly 'signUp', default to login
document.title = (initialScreen === 'signUp' ? 'Sign Up' : 'Log In') + ' | Brand Name'; // dynamically set page title
lock.show({ initialScreen }); // open the lock with the initial screen
This way you don’t need to completely switch away from Universal Login. Just need to use “Classic” Universal Login, and not the “New” Universal Login.
(Disclaimer: may work with the new one too, have not tried as my app is using classic! YMMV.)
Then, when you want to sign up/log in just include a query param &initialScreen= at the end:
Please clarify if I understand correctly - are you implementing “this” the feature discussed (default to SignUp view) or something else, related to RFC?
We are building a new product and this issue is very hurting. We cannot use the new XP without this feature.
We are building a feature that will let you specify screen_hint=signup in the /authorize parameters and will default to the Signup page when using the New Universal Login Experience
Thanks.
Does that include support in the auth0-spa lib, to hide that implementation detail (e.g. a new method similar to loginWithPopup, maybe signupWithPopup? or a parameter/option in existing methods).
Oleksandr