curl --request POST \
--url https://api.example.com/auth/login-email \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"token": "<string>",
"message": "<string>"
}Authenticate an existing user with their email address and password.
curl --request POST \
--url https://api.example.com/auth/login-email \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"token": "<string>",
"message": "<string>"
}x-access'courser-auth-token header on authenticated requests."Login successful"."Incorrect email or password"curl --request POST \
--url http://localhost:8000/auth/login-email \
--header 'Content-Type: application/json' \
--data '{
"email": "[email protected]",
"password": "securepassword123"
}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"message": "Login successful"
}
{
"message": "Incorrect email or password"
}