Edit this page on Github (opens new window)
- Core classes
- ErrorResponse
- Response
- Lang
- SearchResult
- Controllers
- Auth
- Collection
- Document
- Realtime
Revokes the user's token & unsubscribes them from registered rooms.
public CompletableFuture<Response> logout()
throws NotConnectedException, InternalException
A Response object.
Map<String, Object> credentials = new HashMap<>();
credentials.put("username", "foo");
credentials.put("password", "bar");
kuzzle.getAuthController().login("local", credentials).get();
kuzzle.getAuthController().logout();