Closed app-generator closed 3 years ago
API URL : http://localhost:5000/api/users/login
http://localhost:5000/api/users/login
Request Headers
application/json
Request Body
{ "password":"pass", "email":"test@appseed.us" }
Response for success
{ "success": true, "token": "JWT_TOKEN_HERE", "user": { "_id": "1", "username": "test", "email": "test@appseed.us" } }
Response for failure - wrong password or email
{ "success": false, "msg": "Wrong credentials" }
API URL :
http://localhost:5000/api/users/login
Request Headers
application/json
Request Body
Response for success
Response for failure - wrong password or email