AuthRepository

interface AuthRepository

Interface defining authentication-related operations.

This repository provides authentication methods for Firebase Auth, including email/password and Google Sign-In. It wraps the Firebase Auth SDK to provide a consistent repository pattern with Result-based error handling.

See also

Implementation class with Firebase Auth integration

Functions

Link copied to clipboard
abstract suspend fun registerWithEmailAndPassword(name: String, email: String, password: String, activity: Activity): Result<Unit>

Register a new user with an email and password.

Link copied to clipboard
abstract suspend fun registerWithGoogle(activity: Activity): Result<Unit>

Register a new user with Google.

Link copied to clipboard
abstract suspend fun signInWithEmailAndPassword(email: String, password: String): Result<Unit>

Sign in with an email and password.

Link copied to clipboard
abstract suspend fun signInWithGoogle(activity: Activity): Result<Unit>

Sign in with Google.

Link copied to clipboard
abstract suspend fun signInWithSavedCredentials(activity: Activity): Result<Unit>

Sign in with saved credentials.