:feature:auth

This module implements user authentication flows including email/password and Google Sign-In. It provides a complete authentication UI with error handling and loading states.

Features

  • Email/Password Sign In

  • Google Sign In

  • Registration Flow

  • Credential Management

  • Form Validation

  • Error Handling

Dependencies Graph

Usage

dependencies {
implementation(project(":feature:auth"))
}

Key Components

  1. SignInRoute: Handles user sign-in

    @Composable
    fun SignInRoute(
    onSignUpClick: () -> Unit,
    onShowSnackbar: suspend (String, SnackbarAction, Throwable?) -> Boolean,
    signInViewModel: SignInViewModel = hiltViewModel(),
    )
  2. SignUpRoute: Handles user registration

    @Composable
    fun SignUpRoute(
    onSignInClick: () -> Unit,
    onShowSnackbar: suspend (String, SnackbarAction, Throwable?) -> Boolean,
    signUpViewModel: SignUpViewModel = hiltViewModel(),
    )

Related Documentation

  • ../../docs/guide.md - Step-by-step template for creating new features

  • ../../docs/state-management.md - UiState pattern and ViewModel best practices

  • ../../docs/navigation.md - Type-safe navigation implementation

  • ../../firebase/auth/README.md - Firebase Auth wrapper used by this module

Packages

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