android: add auth sessions hardening APIs and tests
Some checks are pending
CI / test (push) Has started running

This commit is contained in:
Codex
2026-03-09 13:04:12 +03:00
parent 08815bac7b
commit bd6a8a43ed
11 changed files with 214 additions and 0 deletions

View File

@@ -142,3 +142,11 @@
- Improved socket lifecycle hygiene by cancelling heartbeat on close/failure/disconnect paths.
- Added `connect` event mapping and centralized reconcile trigger in realtime handler.
- On realtime reconnect, chat repository now refreshes `all` and `archived` snapshots to reduce stale state after transient disconnects.
### Step 23 - Sprint P0 / 6) Auth hardening foundation
- Extended auth API/repository contracts with sessions management endpoints:
- `GET /api/v1/auth/sessions`
- `DELETE /api/v1/auth/sessions/{jti}`
- `DELETE /api/v1/auth/sessions`
- Added domain model and use-cases for listing/revoking sessions.
- Added unit coverage for session DTO -> domain mapping in `NetworkAuthRepositoryTest`.