Skip to content

Tests / Login - Expected I/O #2

@app-generator

Description

@app-generator

API URL : http://localhost:5000/api/users/login

Request Headers

  • Content-Type: 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"
}

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions