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.
await shopify.user();
The `user` API, which is available on the `shopify` global, asynchronously retrieves information about the user that's logged into the Shopify admin.
Asynchronously returns information about the current user.
export type AdminUserAPI = () => Promise<AdminUser>;
The account access level of the logged-in user
The `user` API, which is available on the `shopify` global, asynchronously retrieves information about the current user logged into Shopify POS.
export type POSUserAPI = () => Promise<POSUser>;
The account access level of the logged-in user
The user's account type.
The user's email address.
The user's first name.
The ID of the user's staff.
The user's last name.