how can i utilize `singleton` in KMM :question: i...
# multiplatform
l
how can i utilize
singleton
in KMM i have this Kotlin singleton class in KMM back-end:
Copy code
object AuthRepo {
    suspend fun signIn(email: String, password: String) =
        firebaseAuth.signIn(email = email, password = password)

    . . . 
}
I want to get the instance in iOS, this is how i'm doing it now, but i think this is not the singleton object:
Copy code
private let authRepo: AuthRepo = AuthRepo()
i don't want to use dependency injection
m
l
Tnx!