- Create partner account
- Create custom/manual app
- Save API secret key and API key for the app in
.env
:
SHOPIFY_API_KEY=
SHOPIFY_API_SECRET=
- Install and run Cloudflared:
brew install cloudflare/cloudflare/cloudflared
cloudflared tunnel --url http://localhost:3000
- Set the cloudflared host in
.env
:
HOST=https://random-words.trycloudflare.com
- Set the cloudflared host as app URL and redirect URL in partners dashboard. redirect URL should end with /auth/shopify/callback