android: add auth UI flow and auth-to-chats navigation

This commit is contained in:
Codex
2026-03-08 22:21:51 +03:00
parent 0ff838baf7
commit 54b0d4eb8c
9 changed files with 367 additions and 17 deletions

View File

@@ -14,3 +14,9 @@
- Added auth network stack: bearer interceptor, 401 authenticator with refresh flow and retry guard.
- Added clean-layer contracts and implementations: `domain/common`, `domain/auth`, `data/auth/repository`.
- Wired dependencies with Hilt modules for DataStore, OkHttp/Retrofit, and repository bindings.
### Step 3 - Minimal auth UI and navigation
- Replaced Phase 0 placeholder UI with Compose auth flow (`AuthViewModel` + login screen).
- Added loading/error states for login and startup session restore.
- Added navigation graph: `AuthGraph (login)` to placeholder `Chats` screen after successful auth.
- Implemented automatic session restore on app start using stored tokens.