I created a ticket before and it was said “Not Reproducible”. Now the same issue which should be much easier to reproduce.
- Login via Google+ with the below code.
Backendless.UserService.loginWithGooglePlus({email:"email"},"email",new Backendless.Async(loginOk, loginFail),null,true);
-
User remains login for 1 or 2 days roughly as required due to the StayLoggedIn parameter value of true.
-
Next day when I try to login, no remote calls happens as user details fail with the below message.
Uncaught (in promise) Object {code: 3064, message: "Not existing user token. Relogin user to update your user token", statusCode: 400}
-
The API is supposed to login successfully or force user to login, but not this making the app calls fail.
-
App works normally if I forcefully logout the user once.
If Backendless.UserService.isValidLogin() should be used to overcome this, where would that be called? Ideally that logic should be handled by the social login methods.
Please advice.