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"}}
3 Replies
Chocci_Milk
Chocci_Milk2mo ago
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?
safwan
safwanOP2mo ago
Can you guide me how to do this internally?
ljspoor94
ljspoor942mo ago
Literally just add internal after api.

Did you find this page helpful?