Alokai
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

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
responseOptionsOptionalResponseOptions

Returns

Boolean indicating if user is a guest or not

Referenced Types

On this page