Closed VEXI19 closed 6 months ago
Add POST request responsible for login in a user.
You can add functions to the schmes. In this case you can add comparePassword function to the user scheme that will check if the given passowrd is correct
POST API_URL/auth/login
Response should contain token.
Add POST request responsible for login in a user.
Extra notes
You can add functions to the schmes. In this case you can add comparePassword function to the user scheme that will check if the given passowrd is correct
Example request
POST API_URL/auth/login
Body
Required:
Response
Response should contain token.