inProgress-team / react-native-meteor

Meteor Reactivity for your React Native application :)
MIT License
693 stars 210 forks source link

Stop breaking user's session if login fails once. #328

Closed jnurkka closed 4 years ago

jnurkka commented 6 years ago

I noticed in one of my projects that users mysteriously got logged out. This happened especially to users with bad network connectivity.

When looking into the code, I noticed that the _handleLoginCallback function clears the loginToken if login fails. Is there a clear reason as to why this behaviour was programmed? I removed it for my project and would propose merging this into the next release if there is no clear reason to remove login tokens at login failure.