shopify-next-tailwind
The kit mentions installing the Headless app in the Shopify store for easy access to APIs.
The kit doesn’t mention creating a custom app in there, but I noticed in the .env.example file the vars STOREFRONT_API_KEY and STOREFRONT_API_SECRET, and also noticed the example store “This Dot Hydrogen” uses a custom app that generates the key and secret. A quick investigation in the starter code I don’t see anywhere using those vars though.
The Shopify dev docs do recommend the Headless app https://shopify.dev/docs/api/hydrogen-react#authentication, but I think it’s because it’s their own creation and maybe they don’t want to create another guide on building and setting up your own custom app.
What’s important is that we have both public and private access tokens, and in both ways we get those tokens. Headless app provides a slightly more user-friendly flow if you need to rotate or re-create a new storefront though https://shopify.dev/docs/custom-storefronts/headless