Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

isLoggedIn

Endpoint for checking if user is logged in or not. It doesn't use any GraphQL query

Signature

export declare function isLoggedIn(
	context: SetupContext,
	responseOptions?: ResponseOptions
): Promise<boolean | isLoggedInResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
responseOptionsOptionalResponseOptions

Returns

Boolean indicating if user is logged in or not

Referenced Types

On this page