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 #

Copied to clipboard!
public CompletableFuture<Void> deleteMyCredentials(String strategy)
  throws NotConnectedException, InternalException
Argument Type Description
strategy
String
Strategy to use

Usage #

Copied to clipboard!
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 #

Copied to clipboard!
fun deleteMyCredentials(strategy: String): CompletableFuture<Void>
Argument Type Description
strategy
String
Strategy to use

Usage #

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

::: ::::