AuthRepository

interface AuthRepository

Interface defining authentication-related operations.

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.