Seguros APIseguros-api reference
User login
Authenticate user and return JWT tokens in httpOnly cookies
Authenticate user and return JWT tokens in httpOnly cookies
Request Body
application/json
Login to the API to get authentication tokens (stored in httpOnly cookies)
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/auth/login" \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "password": "123456" }'{
"message": "Login successful",
"user": {
"id": "string",
"email": "string",
"name": "string"
}
}Empty