How to fetch Access Token using external API
I want to fetch access token using external API but it says:
Response body: {"errors":[{"message":"Cannot query field "accessToken" on type "ShopifyShop".","locations":[{"line":23,"column":9}],"extensions":{"fromSandbox":false}}],"data":null,"extensions":{"logs":"https://ggt.link/logs/344243/7843c96fb433bd28c4a56a116b41a837","traceId":"7843c96fb433bd28c4a56a116b41a837"}}
Gadget Auth - Loading
Gadget Auth
3 Replies
Hello,
That's simply not possible and unsafe. You can only fetch access tokens using the internal API. Whats your use case for doing this?
Can you guide me how to do this internally?
Literally just add internal after api.