Carrier Login
POST/truckers/auth/login
Authenticates a carrier in the system. Verifies the credentials and returns a JWT if they are valid.
Flow:
- Validate email and password
- Verify that the account is active
- Record the access in the history log
- Generate a JWT token with user data
Common errors:
- WRONG_CREDENTIALS: Incorrect credentials (400)
- USER_NOT_ACTIVE: Account suspended or not activated (401)
Request
Responses
- 200
- 400
- 401
Authentication successful
Invalid credentials or incorrect format.
Inactive or suspended account.