logout #
Revokes the user's token & unsubscribe them from registered rooms.
Signature #
void logout() noexcept;
Usage #
try {
kuzzle->auth->login("local", R"({"username":"foo","password":"bar"})");
kuzzle->auth->logout();
std::cout << "Success" << std::endl;
} catch (kuzzleio::KuzzleException &e) {
std::cerr << e.what() << std::endl;
}
Edit this page on Github(opens new window)