isGuest
Check if the user is a guest
Signature
declare function isGuest(
context: CommercetoolsIntegrationContext
): Promise<boolean | isGuestResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | CommercetoolsIntegrationContext |
Referenced Types
Examples
Check if the user is a guest
const { value } = await sdk.commerce.isGuest()