AuthDataSource

interface AuthDataSource

Interface defining data source operations for authentication.

Functions

Link copied to clipboard
abstract fun getCurrentUser(): AuthUser?

Gets the currently authenticated user, if any.

Link copied to clipboard
abstract suspend fun registerWithEmailAndPassword(name: String, email: String, password: String, activity: Activity): AuthUser

Register a new user with an email and password.

Link copied to clipboard
abstract suspend fun registerWithGoogle(activity: Activity): AuthUser

Register a new user with Google.

Link copied to clipboard
abstract suspend fun signInWithEmailAndPassword(email: String, password: String): AuthUser

Sign in with an email and password.

Link copied to clipboard
abstract suspend fun signInWithGoogle(activity: Activity): AuthUser

Sign in with a Google account.

Link copied to clipboard
abstract suspend fun signInWithSavedCredentials(activity: Activity): AuthUser

Look for saved credentials.

Link copied to clipboard
abstract suspend fun signOut()

Sign out the currently authenticated user.