---
updatedAt: 2025-08-05T08:49:16.000Z
agentTools:
  projectIndex: https://dev.tapcart.com/llms.txt
---

# customer/logout

Log out the current customer

#### Fields

### `redirect` • [destination](https://dev.tapcart.com/docs/destination)

##### 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.

```javascript App Studio - React.js
Tapcart.action?.("customer/logout", {
    redirect: {
     type: "route",
     id: "home",
  },
})
```