The app is logging out the user all the time.
This started to happen when I upgrade during this summer from
1.6.1 to 1.8.3 (my current version)
I don’t know where to start.
Is there a function that I could set a break point in, or how would you go about to figure out why I get logged out all the time?
Which account type do you use? Password? Social media?
If I recall correctly there was a time when I was getting logged out quite frequently too, albeit I used Google to log in; I’ve attributed that phenomenon to Google’s acting up, but couldn’t tell for certain. It was around the time when our app was 1.8.x-ish. We’re on 1.9.3 now and I’m not experiencing this any longer. I don’t know if these events are related.
When your app appears to log you out check the local storage to see if your meteor token has been removed.
If the token is still there and is still valid in your user collection then it may just be your ui that thinks it’s logged out.
If the token is gone then something else has caused the login token to disappear. This could be anything.
If I recall correctly, there is accounts.onLogout that fires when meteor logs out. Check the meteor guide for proper info