Registers a new user.
validateUserPhone(): Validates the phone number of the user.validateUserFname(): Validates the first name of the user.validateUserLname(): Validates the last name of the user.validateUserPassword(): Validates the user's password.register: Handles the registration process.json
{
"phone": "string",
"fname": "string",
"lname": "string",
"password": "string"
}
Authenticates an existing user.
validateUserPhone(): Validates the phone number of the user.validateUserPassword(): Validates the user's password.signin: Handles the authentication process.json
{
"phone": "string",
"password": "string"
}
Accesses a protected route that requires authentication.
validate: Validates the authentication token.