authForFakeFirestore property

Stream<Map<String, dynamic>?> authForFakeFirestore
getter/setter pair

Pass this to FakeFirestore's constructor so it can apply security rules according to the signed in user. It builds the auth Map defined at https://firebase.google.com/docs/reference/rules/rules.firestore.Request#auth. The reason this is a Map<String, dynamic>?> instead of a User is because we don't want to make Fake Cloud Firestore depend on firebase_auth if possible.

Implementation

late Stream<Map<String, dynamic>?> authForFakeFirestore;