:feature:auth
Purpose: Email/password and Google sign-in/registration screens, wrapping firebase:auth behind the UiState/StatefulComposable pattern. ViewModels call AuthRepository in :data, which handles authentication and saves the local profile through its data sources.
Key APIs
| API | What it does |
|---|---|
SignInScreen / SignInViewModel | Sign-in form; saved-credential auto sign-in, Google sign-in, email/password |
SignUpScreen / SignUpViewModel | Registration form |
Destination signature excerpt; imports and function body are omitted.
// feature/auth/src/main/kotlin/dev/atick/feature/auth/ui/signin/SignInScreen.kt
@Composable
internal fun SignInScreen(
onSignUpClick: () -> Unit,
onShowSnackbar: suspend (String, SnackbarAction, Throwable?) -> Boolean,
signInViewModel: SignInViewModel = hiltViewModel(),
)Content copied to clipboard
Related Documentation
Guide — the canonical feature walkthrough to follow when adding a new screen
State Management —
UiState/StatefulComposablepattern used hereNavigation — how this module's entries are registered with
NavigatorCredential Manager guide — the Credential Manager source used by the authentication repository