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
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
responseOptions | Optional | ResponseOptions |
Returns
Boolean indicating if user is logged in or not