- Fill out the signup form on the website.
- Provide a unique identity, such as an email or phone number.
- Click on the submit button to send the data.
- Before saving the data in the database, a confirmation message is sent.
- If the identity provided is an email, a confirmation message is sent to the email address.
- If the identity provided is a phone number, an OTP (One-Time Password) is sent to the phone number.
- This step verifies the authenticity of the provided email or phone number.
- User attempts to login by providing their username (which could be their email or a chosen username) and password.
- The provided username and password are sent to the login service.
- The login service accesses the database to validate the credentials.
- If the credentials are correct, the login service returns a success response.
- If the credentials are incorrect, the login service returns a failure response.