Asynchronouse Backendless.UserService.isValidLogin returns object and not boolean.


I’m having some issues using the isValidLogin from UserService in javascript. It seems to return an object and not a booealn.

Backendless.UserService.isValidLogin(new Backendless.Async(function success(data) {
          for (var name in data) {
            console.log("property->" + name);
          showSnackbar("Logged in as " + data);
        }, function error(data) {
          location.href = "./login";

This is the output I get from Google Chrome console.


If I user the Synchronous method, it returns true instead. However I get the following warning/error in the console.

"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check"

Appreciate any feedback.


Hi, Allen.
We’ve fixed the problem with async calling and released the new version of JS-SDK (3.1.18).
Please, update your SDK.
About the warning in the console - yep, a sync XMLHttpRequest is bad for UX, our advice - always use async calls or Promises.
Thanks for your feedback. Stay sharp.

Best regards, Ilya.