How vikas00413/loginflowdesign works
LoginFlowDesign is a modular Android authentication app. The user enters through app launch and splash/session initialization, then follows login or optional biometric unlock to profile and settings; login persists tokens and user/session data, while authenticated requests can refresh tokens. The README also documents social sign-in and a debug data viewer. Source excerpts contain only build configuration, so runtime relationships below rely on README statements and diagrams; unsampled implementation details are represented at their known module or directory paths.
Main entry points: AuthRepository.kt Auth repository · AppAuthNavigator.kt Auth navigator · SocialSignInHelper.kt Social sign-in · NetworkModule.kt Retrofit and OkHttp
Components 23
App shell
- Android app
app/src/main/java/com/example/loginflow/MainActivity.kt - Launch routing
app/src/main/java/com/example/loginflow/presentation/SplashViewModel.kt - Auth navigator
app/src/main/java/com/example/loginflow/navigation/AppAuthNavigator.kt - Social sign-in
app/src/main/java/com/example/loginflow/social/SocialSignInHelper.kt
User features
- Login flow
feature-auth/src/main/java/com/example/loginflow/feature/auth/presentation/login/LoginViewModel.kt - Biometric unlock
feature-auth/src/main/java/com/example/loginflow/feature/auth/presentation/biometric/BiometricViewModel.kt - Profile management
feature-profile/src/main/java/com/example/loginflow/feature/profile/presentation/profile/ProfileViewModel.kt - Settings
feature-profile/src/main/java/com/example/loginflow/feature/profile/ui/SettingsScreen.kt - Debug data viewer
app/src/main/java/com/example/loginflow/debug/DebugDataScreen.kt
Authentication core
- Auth manager
core-auth/src/main/java/com/example/loginflow/core/auth/AuthManager.kt - Auth repository
core-auth/src/main/java/com/example/loginflow/core/auth/data/AuthRepository.kt - Auth API
core-auth/src/main/java/com/example/loginflow/core/auth/api/AuthApi.kt - Token manager
core-auth/src/main/java/com/example/loginflow/core/auth/security/TokenManager.kt
Network access
- Retrofit and OkHttp
core-network/src/main/java/com/example/loginflow/core/network/di/NetworkModule.kt - Auth interceptor
core-network/src/main/java/com/example/loginflow/core/network/interceptor/AuthInterceptor.kt - Token authenticator
core-network/src/main/java/com/example/loginflow/core/network/authenticator/TokenAuthenticator.kt
Encrypted storage
- Encrypted Room DB
core-database/src/main/java/com/example/loginflow/core/database/AppDatabase.kt - User and session DAOs
core-database/src/main/java/com/example/loginflow/core/database/dao/Daos.kt - Encrypted preferences
core-auth/src/main/java/com/example/loginflow/core/auth/data/AuthLocalDataSource.kt
Other components
- User
- Google SDK
- Facebook SDK
- DummyJSON API
Connections 32
- User → Android app: opens
README.md - Android app → Launch routing: starts
README.md - Launch routing → Auth manager: initializes
README.md - Launch routing → Auth navigator: routes
README.md - Auth navigator → Login flow: shows login
README.md - Auth navigator → Biometric unlock: routes conditionally
README.md - Auth navigator → Profile management: routes
README.md - User → Login flow: submits credentials
README.md - Login flow → Auth manager: authenticates
README.md - Auth manager → Auth repository: delegates to
README.md - Auth repository → Auth API: calls
README.md - Auth API → Retrofit and OkHttp: uses
README.md - Retrofit and OkHttp → DummyJSON API: sends requests
README.md - Auth repository → Token manager: persists tokens
README.md - Auth repository → Encrypted Room DB: stores user session
README.md - Encrypted Room DB → User and session DAOs: exposes
README.md - Auth repository → Encrypted preferences: stores auth data
README.md - Retrofit and OkHttp → Auth interceptor: configures
README.md - Retrofit and OkHttp → Token authenticator: configures
README.md - Auth interceptor → Token manager: reads token
README.md - Token authenticator → DummyJSON API: refreshes token
README.md - Token authenticator → Token manager: saves token
README.md - User → Social sign-in: chooses provider
README.md - Social sign-in → Google SDK: authenticates with
README.md - Social sign-in → Facebook SDK: authenticates with
README.md - Social sign-in → Auth manager: maps to demo login
README.md - User → Biometric unlock: unlocks
README.md - User → Profile management: views profile
README.md - Profile management → Settings: opens
README.md - Settings → Debug data viewer: opens viewer
README.md - Debug data viewer → Encrypted Room DB: inspects
README.md - Debug data viewer → Encrypted preferences: inspects snapshot
README.md