Sign out customer

This method signs out a customer on the storefront. Can be used for custom login/logout flows.

Request example:

Ecwid.Customer.signOut(function(success,error) { 
  if (success == true) {
      console.log("Customer signed out");
  } else {
      console.log("Signout failed. Error message: " + error);

// prints
// Customer signed out

Fields available in the returned object:

successbooleanIs true if a customer was signed out, false otherwise.
errorstringError message. Has value only if success is false