: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"))
}
Content copied to clipboard
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
}
}
Content copied to clipboard
Credential Management
The module uses Android's Credential Manager API for secure credential storage and retrieval.