Add Email OTP login


# Add Email OTP login

Email OTP is a form of passwordless authentication. It allows users to log in by providing a one-time passcode sent to their email instead of entering a password.

# Prerequisites

# Enable Email OTP login for an app

Follow the steps given below to enable Email OTP login to the login flow of your application.

  1. On the Asgardeo Console, use one of the following options to start:

    • Option 1: Go to Applications.
    • Option 2: Go to Connections > Passwordless and for the Email OTP connection, click Set up.
  2. Select the application for which Email OTP login needs to be enabled.

  3. Go to the Login Flow tab of the application and add Email OTP login from your preferred editor:

    Using the Classic Editor
    • If you haven’t already built a login flow for your application, select Add Email OTP login to build one.

      Configuring email OTP login in Asgardeo
    • If you have an already built login flow, add the Email OTP authenticator as the first authentication step.

      Customize the login flow
    Using the Visual Editor

    To add passwordless login with Email OTP using the Visual Editor:

    1. Switch to the Visual Editor tab and go to Predefined Flows > Basic Flows > Add Passwordless login.

    2. Select Email OTP.

    3. Click Confirm to add passwordless login with Email OTP to the sign-in flow. Configuring email OTP login in Asgardeo using the Visual Editor

  4. Click Update to save your changes.

# Try it out

Follow the steps given below.

  1. Access the application URL.
  2. Click Login to open the Asgardeo login page.
  3. On the Asgardeo login page, enter your username and press Continue. Sign In with email OTP in Asgardeo You will be redirected to the below email OTP page. Email OTP submit page
  4. Check your inbox for the email containing the one-time passcode. The email reads as follows. Email OTP email
  5. Enter the received passcode in the email OTP page and click on Continue.