AuthRepository
Provider-agnostic authentication repository combining AuthStateProvider, AnonymousAuth, EmailPasswordAuth, and SocialAuth. Bridge this to Firebase Auth, Supabase Auth, or any other auth backend.
For consumers that only need a subset of capabilities (e.g. only session observation or only email authentication), depend on the narrower interfaces directly.
Properties
Functions
Link copied to clipboard
Emits authentication state changes over time.
Link copied to clipboard
abstract suspend fun createAccountWithEmailAndPassword(email: String, password: String): Result<AuthUser>
Creates a new account with email and password.
Link copied to clipboard
Deletes the currently authenticated user's account.
Link copied to clipboard
Sends a password reset email to email.
Link copied to clipboard
Link copied to clipboard
Signs in anonymously without persistent credentials.
Link copied to clipboard
Signs in using Apple authentication on activity.
Link copied to clipboard
Signs in with an existing email and password.
Link copied to clipboard
Signs in using a Google ID token.