I am working on shopify checkout extension and i want to display a product that is realted to the bought product in my extension how am i supposed to make call for it
What i am currently doing is:
async function fetchPostPurchaseData() {
// This is where you would make a request to your app server to fetch the data
Also - it looks like you’re calling the Admin API from the client. I believe this is a security vulnerability since you don’t want to expose your access token to clients.