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.
public CompletableFuture<Void> deleteMyCredentials(final String strategy) throws NotConnectedException, InternalException
| || |
|Strategy to use|
ConcurrentHashMap<String, Object> credentials = new ConcurrentHashMap<>(); credentials.put("username", "foo"); credentials.put("password", "bar"); ConcurrentHashMap<String, Object> response = kuzzle.getAuthController().login("local", credentials).get(); kuzzle.getAuthController().deleteMyCredentials("local").get();