meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

Fix loginWithToken when token is invalid #126

Closed vforvasile closed 1 year ago

vforvasile commented 1 year ago

Hi!

After we upgraded to 2.4+ we got some issues related to loginWithToken. After some investigation, it seemed that after the login token expired, it tried to loginWithToken again and again even though it was logged out by the server with [403].

I added a small fix, better suggestions are welcome.

Here's a small video with an invalid token:

https://github.com/meteorrn/meteor-react-native/assets/9382283/cec2d195-c598-4747-9c81-03680d379db8

jankapunkt commented 1 year ago

@vforvasile can you please fix the lint errors via npm run lint:fix ?