Achieve a Home Realm Discovery identity providers in custom login page

Hello! I’m implementing from Branding > Universal Login > Login > Custom login page > a form with html and JS that has 3 screens that alternate for 1) A login, 2) A Sign up and 3) a SSO form.

I have managed to create the first two forms with Auth0Lock and Auth0LockPasswordless, but the third form I want to have the logic of Home Realm Discovery identity providers, I’ve built the input but I can’t find in the documentation how to make the switch to redirect the user to the enterprise identity provider’s or to enter the password?

Could you help me to solve this?