Step 3. Setup for using Customer Account API (/account route)
Setup for using Customer Account API (/account section)
Last updated
Was this helpful?
Setup for using Customer Account API (/account section)
Last updated
Was this helpful?
You have Apps and channels permissions on the Shopify store that you're working with.
You have installed the or sales channel from the Shopify App Store.
NOTE: Setup for using Customer Account API - Step 4. Setup for using Customer Account API (/account route)
Customer Account API authentication doesn't support the use of localhost
due to . For development purposes, use a tunnelling service, such as .
In this step, you'll learn how to use to set up a public HTTPS domain that connects to your local Hydrogen application.
Install and run ngrok in your development environment.
Set up an account.
In your ngrok settings, .
Install the .
In a terminal, start ngrok using the following command:
Go to your Shopify admin => Hydrogen
or Headless
app/channel => Customer Account API => Application setup
Edit Callback URI(s)
to include https://<your-ngrok-domain>.app/account/authorize
Edit Javascript origin(s)
to include your public domain https://<your-ngrok-domain>.app
or keep it blank
Edit Logout URI
to include your public domain https://<your-ngrok-domain>.app
or keep it blank
Modify your Hydrogen app’s to allow the development domain as a connect-src
. Your content security policy is typically located in /app/entry.server.tsx
.