SDK
SDK Java v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

This SDK has been deprecated because of stability issues. It is not advised to use it in a production environment.

logout #

Revokes the user's token & unsubscribe them from registered rooms.

Signature #

Copied to clipboard!
void logout();

Usage #

Copied to clipboard!
try {
  kuzzle.getAuth().login("local", "{\"username\":\"foo\",\"password\":\"bar\"}");
  kuzzle.getAuth().logout();
  System.out.println("Success");
} catch (KuzzleException e) {
  System.err.println(e.getMessage());
}