Get Current User¶
A JavaScript application can retrieve an instance of Backendless.User
representing the currently logged in user using the following API call:
Backendless.UserService.getCurrentUser()
.then( function( currentUser ) {
})
.catch( function ( error ) {
});
If a user is not logged in, the method returns null
.