Passwordless Login Page with Both SMS and Email Options

Problem statement

During the login page configuration, how to allow users to choose between SMS and Email for Passwordless login?

Solution

Out-of-the-box, it is not possible to have these options appear as buttons for the user on the Universal Login page, however, this can be developed on a custom login page with Auth0.js.

The webAuth.passwordlessStart method accepts a connection parameter, and the value​ must be either email or sms . It is just a matter completing the following:

  • Enabling both sms and email connections on the application.
  • Designing a custom login page to give the user a choice.
  • Passing the appropriate parameters to webAuth.passwordlessStart in the custom login page.

Related References: