User Id Context on admin extension

Is it possible to know the userid of the user (under the merchant/shop) within an admin extension context? is it included in the connections?
3 Replies
Chocci_Milk
Chocci_Milk2w ago
Hello, You can only get the merchant user's information when using an online accessToken which we don't request. The Gadget connection uses offline access tokens
Jay
JayOP2w ago
Ok thanks. in that case, should i create mny own connect using the shopify node pacakge?
Chocci_Milk
Chocci_Milk2w ago
You'd need to run an entirely new auth flow just to get the online access token. It's not an instance of an admin API call to get another access token

Did you find this page helpful?