Session API
Session API contains the information about the current user session, and allows to fetch a fresh session token for communication with your app's backend service.
Name | Type | Description |
---|---|---|
currentSession | Session |
The information about the current user session. |
getSessionToken | () => Promise< |
Get a fresh session token. |
Name | Type | Description |
---|---|---|
shopId | number |
The shop ID associated with the shop currently logged into POS. |
userId | number |
The user ID associated with the Shopify account currently authenticated on POS. |
shopDomain | string |
The shop domain associated with the shop currently logged into POS. |
locationId | number |
The location ID associated with the POS' current location. |
staffMemberId | number? |
The staff ID who is currently pinned into the POS. |