POST /api/auth/login
Authenticates a user with email and password credentials.Authentication
No authentication required.Request Body
Valid email address associated with the account.
User’s account password.
Request Example
Response
Success message confirming authentication.
Success Response (200 OK)
Error Responses
404 Not Found - User Does Not Exist
403 Forbidden - Account Not Confirmed
401 Unauthorized - Invalid Credentials
400 Bad Request - Validation Errors
500 Internal Server Error
cURL Example
Notes
- Account must be confirmed before login is allowed
- Password is validated against the hashed password in the database
- Rate limiting is applied to this endpoint
- Session/JWT token handling should be implemented client-side