User registration

In this example, we demonstrate how to register a new user using the OneEntry API.

✅ Purpose of the scenario:
  • We get the registration form for generating the frontend form
  • The user enters the required data and registers.
  • After registration, the user receives an activation code by email/sms
  • The user enters the activation code and activates the created user.
✅ What you need:
  • A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
  • Registration form with marker "reg"
  • Form fields (attributes) with markers "email_reg", "password_reg", "name_reg", "phone_reg"
  • Valid email/phone number to receive the activation code
📌 Important:
  • These examples do not include error handling.
  • You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
Loading sandbox…