What scopes does the Storefront API key need for local Hydrogen development?

What scopes does the Storefront API key need for local Hydrogen development?

shakil1231
Shopify Partner
1 0 0

I read that since the Hydrogen Channel (Oxygen) isn't available to development stores, you can generate a Storefront API key from a development store to run Hydrogen locally / somewhere other than Oxygen. (link)

Is there any docs on whats scopes this Storefront API key needs? Also docs for running Hydrogen locally with the Storefront key

Reply 1 (1)

john_mccarthyyy
Visitor
3 0 0

Hey there! Yep, you're absolutely right about generating the Storefront API key from a development store to run Hydrogen locally. It's a solid workaround. As for the scopes, you’ll need things like unauthenticated_read_product_listings, unauthenticated_read_checkouts, and unauthenticated_write_checkouts.

If you're looking for more guidance on running Hydrogen locally with that key, check out the docs https://shopify.dev/docs/storefronts/headless/hydrogen/getting-started they’ve got some solid info on setting everything up. Let me know how it goes