Logout #
Revokes the user's token & unsubscribes them from registered rooms.
Arguments #
public CompletableFuture<Response> logout()
throws NotConnectedException, InternalException
Return #
A Response object.
Usage #
ConcurrentHashMap<String, Object> credentials = new ConcurrentHashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
kuzzle.getAuthController().login("local", credentials).get();
kuzzle.getAuthController().logout();
Edit this page on Github(opens new window)