AuthRepositoryImpl

class AuthRepositoryImpl(supabase: DockwareSupabase, appSettings: AppSettings, apiService: ApiService, profileRepository: ProfileRepository) : AuthRepository

Constructors

Link copied to clipboard
constructor(supabase: DockwareSupabase, appSettings: AppSettings, apiService: ApiService, profileRepository: ProfileRepository)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val authFlow: StateFlow<SessionRepository.AuthFlow>
Link copied to clipboard
open override val currentSession: StateFlow<SessionRepository.AuthSession?>

Functions

Link copied to clipboard
open suspend override fun initializeSession()
Link copied to clipboard
open fun isLoggedIn(): Boolean
Link copied to clipboard
open suspend override fun refreshSession(): Result<SessionRepository.AuthSession?>
Link copied to clipboard
open suspend override fun sendPasswordResetEmail(email: String): Result<Unit>
Link copied to clipboard
open suspend override fun signIn(email: String, password: String): Result<Unit>
Link copied to clipboard
open suspend override fun signOut(): Result<Unit>
Link copied to clipboard
open suspend override fun signUp(email: String, password: String): Result<Unit>