whats the correct way to add the privateStorefrontToken to Hydrogen.config ? #2245
Replies: 4 comments 3 replies
-
The private token is named the "Delegate Access Token". Here are some docs on how to generate that Delete Access Token |
Beta Was this translation helpful? Give feedback.
-
One thing to note is that |
Beta Was this translation helpful? Give feedback.
-
I am also getting 403 error... this shit sucks and doesn't work at all. smh |
Beta Was this translation helpful? Give feedback.
-
Yeah, definitely a bit confusing trying to configure everything in Hydrogen to deploy elsewhere |
Beta Was this translation helpful? Give feedback.
-
Hello All,
I am trying to avoid rate limiting by adding the private PRIVATE_STOREFRONT_API_TOKEN to my Hydrogen Config.
I have added the storefrontToken which I obtained from the shopify Storefront Api on my shopify Admin. I obtained both the shopify api key and api secret key from there and trying to add both of them as "storefrontToken" and "privateStorefrontToken" in the Hydrogen.coinfig
I added them as follows:
in my .env var those variables are stored with the values from my shopify admin. If I have both of these properties in the config I get an Error: Failed to connect to the Storefront API: 403 Forbidden, on page load. if I have only the storefrontToken it works but rate is limited on deployment.
Am i doing something wrong here ? do i need to obtain the privateStorefrontToken from somewhere else other than the Storefront Api configuration page on my Shopify Admin ?
NOTE: I am deploying the app on Vercel, but i get the error even locally.
please help !
Beta Was this translation helpful? Give feedback.
All reactions