Vue Storefront is now Alokai! Learn More
LogoutCustomer

LogoutCustomer

Implements LogoutCustomer Unified Method.

Source

import { defineApi } from "@vsf-enterprise/unified-api-commercetools";

export const logoutCustomer = defineApi.logoutCustomer(async (context) => {
  await context.api.customerSignOut();
});