curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"accessToken": "<string>",
"refreshToken": "<string>",
"user": {
"id": 123,
"email": "<string>",
"nombre": {},
"apellido": {},
"telefono": {},
"email_verified": true
}
}curl --request POST \
--url https://api.example.com/api/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"message": "<string>",
"accessToken": "<string>",
"refreshToken": "<string>",
"user": {
"id": 123,
"email": "<string>",
"nombre": {},
"apellido": {},
"telefono": {},
"email_verified": true
}
}curl -X POST https://api.tresacontafy.com/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securePassword123"
}'
{
"message": "Login exitoso",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": 123,
"email": "[email protected]",
"nombre": "Juan",
"apellido": "Pérez",
"telefono": "+52 55 1234 5678",
"email_verified": true
}
}
Authorization: Bearer <accessToken>
/api/auth/refresh endpoint to obtain a new access token.