feat(auth): T19 implement user login endpoint

Add POST /api/auth/login endpoint with:
- UserLogin schema validation
- User lookup by email
- Password verification with bcrypt
- JWT token generation
- TokenResponse with access_token, token_type, expires_in

Status: 200 OK with token on success, 401 for invalid credentials

Test coverage: 4 tests for login endpoint including inactive user handling
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-07 13:57:43 +02:00
parent 714bde681c
commit 4633de5e43

Diff Content Not Available