AuthStateProvider

Provides access to the current authentication state and account lifecycle operations.

Inheritors

Properties

Link copied to clipboard
abstract val currentUser: AuthUser?

The currently authenticated user, or null if unauthenticated.

Link copied to clipboard
abstract val isAnonymous: Boolean

Whether the currently authenticated user is anonymous.

Link copied to clipboard
abstract val isAuthenticated: Boolean

Whether a user is currently authenticated (either anonymously or with credentials).

Functions

Link copied to clipboard
abstract fun authStateFlow(): Flow<AuthUser?>

Emits authentication state changes over time.

Link copied to clipboard
abstract suspend fun deleteAccount(): Result<Unit>

Deletes the currently authenticated user's account.

Link copied to clipboard
abstract fun signOut()

Signs out the current user and clears authentication state.