Last updated 22 days ago
This endpoint allows a user to log in by providing their username and password.
/auth/login
Bearer token for authentication.
user123
securepassword123
Login successful
Invalid login credentials
curl -L \ --request POST \ --url 'http://139.59.67.17/backend/api/auth/login' \ --header 'Authorization: text' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data '{"username":"user123","password":"securepassword123"}'
{ "status": 1, "message": "Logged in successfully" }