User
The User API lets you asynchronously retrieve information about the currently logged-in user.
The API returns a Promise
, which contains user information, and the payload varies based on whether the user is logged into the Shopify admin or Shopify POS.
Anchor to Admin UserAdmin User()
Admin User()
The user
API, which is available on the shopify
global, asynchronously retrieves information about the user that's logged into the Shopify admin.
Anchor to Admin User-returnsReturns
Promise<>
Was this section helpful?
Anchor to POS UserPOS User()
POS User()
The user
API, which is available on the shopify
global, asynchronously retrieves information about the current user logged into Shopify POS.
Anchor to POS User-returnsReturns
Promise<>
Was this section helpful?
User
await shopify.user();