: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

APIWhat it does
SignInScreen / SignInViewModelSign-in form; saved-credential auto sign-in, Google sign-in, email/password
SignUpScreen / SignUpViewModelRegistration 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(),
)

Related Documentation

  • Guide — the canonical feature walkthrough to follow when adding a new screen

  • State Management — UiState/StatefulComposable pattern used here

  • Navigation — how this module's entries are registered with Navigator

  • Credential Manager guide — the Credential Manager source used by the authentication repository

Packages

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard