Manage access keys
When you connect a Git repository to the Hydrogen channel, the channel automatically creates Storefront API access tokens that enable you to control what the storefront can display from your product inventory.
The Storefront API tokens are unique to each Hydrogen storefront, but the Storefront API permission scopes are shared by all Hydrogen storefronts that are connected to the Hydrogen channel.
You might need to rotate your private access keys if they're leaked. In this tutorial, you'll learn how to rotate your private access keys and manage the permission scopes for your access keys.
Rotate private access key
Anchor link to section titled "Rotate private access key"- From your Shopify admin, under Sales channels, click Hydrogen.
- From the Hydrogen storefront page, click the storefront that you want to change.
- On the storefront overview page, click Storefront settings > Storefront API.
- Under Private access key, click Generate new key.
Manage permission scopes
Anchor link to section titled "Manage permission scopes"- From your Shopify admin, under Sales channels, click Hydrogen.
- From the Hydrogen storefront page, click the storefront that you want to change.
- On the storefront overview page, click Storefront settings > Storefront API.
- Beside Storefront API permissions, click Manage.
- Use the checkboxes to enable or disable the desired permissions, and then click Save.
- Learn how to troubleshoot Oxygen deployments by accessing runtime logs and downloading worker bundles for deployments.