Support Topics Documentation Slack YouTube Blog

User is logged in or not

(Saad Zahoor) #1

Hi there i wanna know how can i check the user is logged in or not instead of using the code below

Backendless.UserService.login( username, password, new AsyncCallback<BackendlessUser>()
 public void handleResponse( BackendlessUser user )
    // user has been logged in, now user properties can be updated

the problem with the code is i need email and password to log in the user

(Mark Piller) #2


If you use the login API which takes the stayLoggedIn argument and you set that argument to true, then subsequently you can check if the user is logged in using the isValidLogin API: