Hi,
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.
property->___class
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 https://xhr.spec.whatwg.org/."
Appreciate any feedback.
Regards,
Allen