curl --request POST \
--url https://api.example.com/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"identifier": "<string>",
"password": "<string>"
}
'{
"message": "Credenciales inválidas"
}
Authenticate a user with their credentials
curl --request POST \
--url https://api.example.com/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"identifier": "<string>",
"password": "<string>"
}
'{
"message": "Credenciales inválidas"
}
curl -X POST https://api.maytravel.com/auth/login \
-H "Content-Type: application/json" \
-d '{
"identifier": "john_doe",
"password": "mypassword123"
}'
{
"message": "Login exitoso",
"token": "JWT_GENERADO_AQUI",
"user": {
"user": "john_doe",
"email": "john@example.com",
"role": "user"
}
}
{
"message": "Credenciales inválidas"
}