Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Update project to use new Customer Account API
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-phan committed Feb 22, 2024
1 parent 6b4b9e5 commit ba9d005
Show file tree
Hide file tree
Showing 10 changed files with 847 additions and 72 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,24 @@ Weaverse provides a convenient way to customize your theme inside the **Weaverse

![Weaverse Editor](https://cdn.shopify.com/s/files/1/0838/0052/3057/files/playground.jpg?v=1699244445)


## Setup for using Customer Account API (`/account` section)

### Setup public domain using Cloudflare Tunnel

1. Use [untun](https://github.com/unjs/untun) to start a tunnel with your public domain
```bash
npx untun@latest tunnel http://localhost:3456
```

### Include public domain in Customer Account API settings

1. Go to your Shopify admin => `Hydrogen` or `Headless` app/channel => Customer Account API => Application setup
1. Edit `Callback URI(s)` to include `https://<your-cf-tunnel>.trycloudflare.com/account/authorize`
1. Edit `Javascript origin(s)` to include your public domain `https://<your-cf-tunnel>.trycloudflare.com` or keep it blank
1. Edit `Logout URI` to include your public domain `https://<your-cf-tunnel>.trycloudflare.com` or keep it blank


### Local development inspects

- Hydrogen app: http://localhost:3456
Expand Down
Loading

0 comments on commit ba9d005

Please sign in to comment.