Login
Authenticates a user by validating their email and password credentials. Returns the user object on successful authentication.Endpoint
Request Body
The user’s email address
The user’s password in plain text
Response
Success Response (200 OK)
Returns the authenticated user object.Unique identifier for the user
The user’s username
The user’s email address
The hashed password (BCrypt)
The user’s first name
The user’s last name
The user’s phone number
The user’s role in the system
Whether the user account is active
When the user account was created
When the user account was last updated
URL or path to the user’s profile image