:firebase:auth

This module handles user authentication using Firebase Authentication. It supports multiple sign-in methods and integrates with Google's Identity Services.

Features

  • Email/Password Authentication

  • Google Sign-In

  • Credential Management

  • Token Handling

  • Session Management

  • Identity Services Integration

Dependencies Graph

Usage

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

Authentication Operations

class AuthDataSource @Inject constructor(
private val firebaseAuth: FirebaseAuth,
private val credentialManager: CredentialManager
) {
suspend fun signInWithGoogle(activity: Activity): AuthUser {
// Google Sign-In implementation
}

suspend fun signInWithEmailPassword(
email: String,
password: String
): AuthUser {
// Email/Password Sign-In implementation
}
}

Credential Management

The module uses Android's Credential Manager API for secure credential storage and retrieval.

Packages

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