createNewAccount

open override fun createNewAccount(    name: String,     email: String,     password: String,     @MainThread onSuccess: () -> Unit,     profilePhotoUri: Uri?)

Used to create a new user account based on the provided name, email,password and optional profilePhotoUri. The onSuccess callback will be called in the event of a successful account creation. In the case of a failure, the uiState's value will be set appropriately.