POST /api/auth/login
Authenticates a user with their username and password. Returns a signed JWT access token and the user’s profile data.
Authentication: Not required
Request
Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
Body
The user’s login name. Must be between 3 and 30 characters.
The user’s password. Must be at least 6 characters.
Response
Success (200)
A signed JWT to include in subsequent requests as
Bearer <token>.The authenticated user’s profile.
Error responses
| Status | Description |
|---|---|
| 401 | Invalid credentials — username not found or password incorrect |