KustomerCore.logout()
Logs a customer out and clears their session data.
First, initialize chat
You must initialize with
KustomerCore.init()
before you can execute any additional Core SDK methods
Examples
// Logout a customer
KustomerCore.logout();
// Logout a customer and run a callback after logout
KustomerCore.logout((callbackResponse, error) => {
console.log("Customer was logged out.");
});
Updated almost 4 years ago