MuscleMate / BackEnd

API for MuscleMate app
3 stars 0 forks source link

Add POST login request #14

Closed VEXI19 closed 6 months ago

VEXI19 commented 6 months ago

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.