Hi All,
I am seeing a strange issue when testing login functionality from my app. I have two users-id and I am testing the log-out and log-in as different users to make sure my app works correctly . Most of the time it is working fine but randomly it logins in as the previously logged-in user.
- User A logs in
- User A logs out
- User B Logs in. In Realm logs, I can see User B successfully authenticated
- After successful login, my app invokes Realm functions to get the data. At this point, it is getting the data of User A.
- I noticed that right after app.login is called, the variable app.currentUser is showing the _id of user B correctly but the email address is of user A instead of the current user which is user B.
did anyone face this issue? Not sure what I am doing wrong. Can someone advise how this can be fixed?