FirebaseAuth
Java client, I was getting this error:Execution exception[[IllegalStateException: FirebaseApp name [DEFAULT] already exists!]]
FirebaseApp.initializeApp()
was getting called again from the application loader, which caused this error.Try
), and if it doesn't exist, we initialize it, which should happen just once.val firebaseApp: FirebaseApp = FirebaseAppLoader(credentials)
. Or with macwire, val firebaseApp: FirebaseApp = wireWith(FirebaseAppLoader(_))
.