I have enabled anonymous login in Firebase and is there a way to detect the current user and show only the current user’s content?
Right now, I can only stream the contents of a specific user if I manually add the document id like follows.
Stream: FirebaseFirestore.instance.collection('user').doc('09kdfasdfjl92').collection('user-specific-data').snapshots(),
I know there is FirebaseAuth.instance.currentUser!.uid to get the unique id of the current user but I don’t know how to use it to stream that user’s content.
1