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.");
});

Did this page help you?