const client = new ApolloClient({
uri: `https://${domain}/api/2023-04/graphql.json`,
headers: {
"X-Shopify-Storefront-Access-Token": storefrontAccessToken,
},
cache: new InMemoryCache(),
});
const { data } = await client.query({
query: SHOP_PRODUCTS_QUERY,
});
setData(data);
but if look closely at the code, storefrontAccessToken generated automatically based on shopName, how its works ?
Would love to try and see marketplace kit in action.
Hi! I trying test shopify-marketplaces-admin-app with shopify-marketplaces-buyer-app, but during install channel (admin) app on dev store i get error:
console.log('server/handlers/mutations/create-storefront-access-token.js',resp.body.data.storefrontAccessTokenCreate); // null
Docs says, that need setup ApolloClient
but if look closely at the code, storefrontAccessToken generated automatically based on shopName, how its works ? Would love to try and see marketplace kit in action.