This API endpoint allows users to log in with their email and password.

Request

POST http://localhost:3000/users/login

Headers

Body

{
    "email": "[email protected]",
    "password": "123456"
}

Example

cURL

curl --location '<http://localhost:3000/users/login>' \\
--header 'Content-Type: application/json' \\
--data-raw '{
    "email": "[email protected]",
    "password": "123456"
}'

Response

Success

{
    "access_token": "jwt format"
}

Error