Registration form for consumer: Sends a register POST request to the backend's Consumer Register API route. This request body will include the consumers details
Registration form for farmer: Sends a register POST request to the backend's Farmer Register API route. This request body will include the farmers details
The regiser POST request hopes to receive a JWT signed token from the backend if the request body has been authorized.
(STATUS CODE 200) If a token is received it is saved to local-storage for user persistence maintenance.
(STATUS CODE 400, 401 etc ) If an error message is received a component renders the a view of the message to the user.
The Registration page should have two forms
The regiser POST request hopes to receive a JWT signed token from the backend if the request body has been authorized.