The Logout() method performs a system logout. All the system variables and Tokens are reset and from this moment any communication with the Server is interrupted.
_ = UniRESTClient.Async.Logout();
Because this method just breaks and reset the whole system, it doesn’t require any parameter and doesn’t return any value.
UniRESTClient.Async.Logout();
isLoggedIn
The isLoggedIn property keeps track if a login session is open or close.
UniRESTClient.isLoggedIn;
void DoLogin()
{
if (UniRESTClient.isLoggedIn)
{
Debug.Log("I'm already in!");
}
else
{
// Do the login operation here...
// . . .
}
}