You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
isGuest
Endpoint for checking if user is a guest. It doesn't use any GraphQL query
Signature
export declare function isGuest(
context: SetupContext,
responseOptions?: ResponseOptions
): Promise<boolean | isGuestResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
responseOptions | Optional | ResponseOptions |
Returns
Boolean indicating if user is a guest or not