Hello,
I am using JS API and I am trying to get a loggedin user according to
first-- Backendless.UserService.isValidLogin() - returns true… then
// get objectId of the logged-in user:
var userObjectId = Backendless.LocalCache.get(“current-user-id”)
// get user-token of the logged-in user:
var userToken = Backendless.LocalCache.get(“user-token”)
// get current user object:
var userObject = Backendless.UserService.getCurrentUser()
I get the current user id and the user-token, but the userObject is empty {}…
What am I missing?
thank you