KustomerCore.logout()
Logs a customer out and clears their session data.
First, initialize chatYou 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 16 days ago