In my Xcode project(SwiftUI). When I log in to user ‘a’ and add some data, then log out and log in to user ‘b’. The data that I added for user ‘a’ appears despite me being in user ‘b’s account.
I was expecting to see user ‘b’s data, which should have been listened to from my Firestore database. But user ‘b’s data just gets replaced by the data of the previous user that logged in. I have a feeling that it is because I am using ‘sessions’. But I am not sure. How can I fix this issue of user data being mixed up?
Kelvin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.