auth

User login

Authenticate user with email and password

post/auth/login

Request body

emailstring email required
passwordstring password required

Example request

{
  "email": "john@example.com",
  "password": "SecurePass123!"
}

Response

Login successful

successboolean required
msgstring required

Example response

{
  "success": true,
  "msg": "Operation completed successfully",
  "data": {
    "user": {
      "_id": "64f123a456b789012c345def",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john@example.com"
    }
  }
}

Changes