customerLogout
Log out the current customer and invalidate the session
Returns
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the session was terminated |
customerErrors | [CustomerLogoutError!] | Error details if logout failed |
Example
mutation { customerLogout { success customerErrors { ... on ValidationError { message } } }}{ "data": { "customerLogout": { "success": true, "customerErrors": [ { "message": "Example" } ] } }}The query is the example the schema documents. The response shows its shape with placeholder values.
Served by
| @evolve-framework/commercetools | Resolved |
| @evolve-framework/medusa | Resolved |
| @evolve-framework/sfcc | Resolved |
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/feature-auth:
CustomerLogout

