Skip to main content
Logs out the current customer by invalidating the access token on Shopify’s servers and clearing the local token storage.

Returns

Promise<void>

Examples

Basic logout

Logout button handler

With confirmation

Logout triggers all subscribers with null, so your UI can automatically update to show the logged-out state.