SDK
SDK Jvm v1.x
2

Logout #

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

:::: tabs ::: tab Java

Arguments #

public CompletableFuture<Response> logout()
  throws NotConnectedException, InternalException

Return #

A Response object.

Usage #

Map<String, Object> credentials = new HashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
kuzzle.getAuthController().login("local", credentials).get();
kuzzle.getAuthController().logout();

::: ::: tab Kotlin

Arguments #

fun logout(): CompletableFuture<Response>

Return #

A Response object.

Usage #

kuzzle.authController.login("local", HashMap<String, Any?>().apply {
  put("username", "foo")
  put("password", "bar")
}).get()
kuzzle.authController.logout()

::: ::::