customer/logout

Log out the current customer

Fields

redirectdestination

Optional redirect destination after logout.

Logs out the current customer and clears all customer-related data from the app. This action performs a comprehensive logout process including clearing sessions, cart data, cookies, and WebView cache.

Tapcart.action?.("customer/logout", {
    redirect: {
     type: "route",
     id: "home",
  },
})