cachapa / firedart

A dart-native implementation of the Firebase Auth and Firestore SDKs
https://pub.dev/packages/firedart
Apache License 2.0
174 stars 62 forks source link

Firestore initialization changed for versions >0.9.0+1 #103

Closed mzohren closed 1 year ago

mzohren commented 1 year ago

When following documentation this should be working:

    var firebaseAuth = FirebaseAuth(apiKey, prefStore!);
    var fireStore = Firestore(projectId, auth: firebaseAuth);

But the named parameter 'auth' isn't defined. for Firestore. Up to 0.9.0+1 this was they way to instantiate a Firestore object. What is the current way ? I am assuming it is somehow using the new authenticator parameter. But since it is not documented, I hav no idea how to use it ...

cachapa commented 1 year ago

Thanks for the report, we changed how auth works in the latest release and forgot to update the readme