Skip to content

customerLogout

Mutationin Authentication

Log out the current customer and invalidate the session

Returns

CustomerLogoutResponse!

FieldTypeDescription
successBoolean!Whether the session was terminated
customerErrors[CustomerLogoutError!]Error details if logout failed

Example

mutation {
customerLogout {
success
customerErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccResolved

Used by

The storefront packages that send it, in these GraphQL documents: