curl --request POST \
--url https://api.example.com/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"user": {
"id": "<string>",
"email": "<string>",
"displayName": "<string>",
"avatarUrl": {},
"createdAt": "<string>"
},
"accessToken": "<string>"
}curl --request POST \
--url https://api.example.com/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>"
}
'{
"user": {
"id": "<string>",
"email": "<string>",
"displayName": "<string>",
"avatarUrl": {},
"createdAt": "<string>"
},
"accessToken": "<string>"
}curl -X POST https://api.neuronmeet.com/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "securePassword123"
}'
{
"user": {
"id": "clx1234567890abcdef",
"email": "[email protected]",
"displayName": "John Doe",
"avatarUrl": null,
"createdAt": "2024-03-15T10:30:00.000Z"
},
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
{
"statusCode": 401,
"message": "Invalid credentials",
"error": "Unauthorized"
}
{
"statusCode": 400,
"message": [
"email must be an email",
"password must be a string"
],
"error": "Bad Request"
}