Authentication

Authentication

The authentication process for the Beautify Web App API involves the following steps:

  1. Request an OTP using the Request OTP route.
  2. Verify the OTP using the Verify OTP route.

Depending on whether the user exists or not, different actions are taken:

  • If the user exists, session cookies are set.
  • If the user does not exist, follow the steps below:
    • If the user wants to be a master, use the Register Master route.
    • If the user does not want to be a master, use the Register route.

Upon successful registration, session cookies are set.