This API endpoint allows users to log in with their email and password.
POST http://localhost:3000/users/login
Content-Type: application/jsonemail (string, required): The email address of the user.password (string, required): The password for the user's account.{
"email": "[email protected]",
"password": "123456"
}
curl --location '<http://localhost:3000/users/login>' \\
--header 'Content-Type: application/json' \\
--data-raw '{
"email": "[email protected]",
"password": "123456"
}'
200 OKapplication/json{
"access_token": "jwt format"
}
401 Unauthorizedapplication/json