SDK
SDK Jvm v1.x
2

DeleteMyCredentials #

Deletes the current user's credentials for the specified strategy. If the credentials that generated the current authentication token are removed, the user will remain logged in until they log out or until their session expires. After that they will no longer be able to log in with the deleted credentials.

:::: tabs ::: tab Java

Arguments #

public CompletableFuture<Void> deleteMyCredentials(String strategy)
  throws NotConnectedException, InternalException
ArgumentTypeDescription
strategy
String
Strategy to use

Usage #

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

::: ::: tab Kotlin

Arguments #

fun deleteMyCredentials(strategy: String): CompletableFuture<Void>
ArgumentTypeDescription
strategy
String
Strategy to use

Usage #

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

::: ::::