Login form for consumer: Sends a login POST request to the backend's Consumer Login API route. This request body will include the consumers email and password
Login form for farmer: Sends a login POST request to the backend's Farmer Login API route. This request body will include the farmers email and password
The login request hopes to receive a JWTsigned 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 login page should have two forms
The login request hopes to receive a JWTsigned token from the backend if the request body has been authorized.