Skip to content

Commit 8c7b5d7

Browse files
committed
docs: update quickstarts
1 parent 1035ad1 commit 8c7b5d7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

docs/postgresql/SELF_HOSTED_POSTGRES_QUICKSTART.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ If the extension is installed correctly, PostgreSQL returns the CloudSync versio
110110

111111
The fastest way to test CloudSync without per-user access control — no JWT setup needed.
112112

113-
1. Get your PostgreSQL database credentials (username and password)
113+
1. Get PostgreSQL credentials for a user with sufficient permissions on the tables CloudSync will sync
114114
2. In your client code (SQLite), authenticate with:
115115
```sql
116116
SELECT cloudsync_network_init('<database-id>');
@@ -131,7 +131,8 @@ If you need role-based access control (RLS) or production security:
131131
- Go to your project's **Configuration** tab
132132
- Click **Edit connection settings**
133133
- **For HS256 (shared secret):** Enter your JWT secret
134-
- **For RS256 (asymmetric):** Enter your JWT allowed issuers URL
134+
- **For RS256 (asymmetric):** Enter the same issuer base URL used in the token's `iss` claim, for example `https://your-auth-domain`
135+
- Do not include `/.well-known/jwks.json` in this field. CloudSync uses the issuer URL and fetches the JWKS document automatically.
135136
- Click **Save**
136137
3. **Get JWT tokens** — choose one:
137138
- **Testing only:** [jwt.io](https://jwt.io/) — paste your JWT secret, generate a test token

docs/postgresql/SELF_HOSTED_SUPABASE_QUICKSTART.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ If the extension is installed correctly, PostgreSQL returns the CloudSync versio
101101
```
102102
postgresql://user:password@host:5432/database
103103
```
104-
5. Click **Create**
104+
4. Click **Create**
105105

106106
---
107107

@@ -111,7 +111,7 @@ If the extension is installed correctly, PostgreSQL returns the CloudSync versio
111111

112112
The fastest way to test CloudSync without per-user access control — no JWT setup needed.
113113

114-
1. Get your PostgreSQL database credentials (username and password)
114+
1. Get PostgreSQL credentials for a user with sufficient permissions on the tables CloudSync will sync
115115
2. In your client code (SQLite), authenticate with:
116116
```sql
117117
SELECT cloudsync_network_init('<database-id>');
@@ -131,7 +131,8 @@ If you need role-based access control (RLS) or production security:
131131
2. **Configure JWT in the CloudSync dashboard:**
132132
- Go to **Configuration** tab → **Edit connection settings**
133133
- **For HS256:** Enter your **JWT secret** (from `.env`)
134-
- **For RS256/JWKS:** Enter your **JWT allowed issuers** URL
134+
- **For RS256/JWKS:** Enter the same issuer base URL used in the token's `iss` claim, for example `https://your-auth-domain`
135+
- Do not include `/.well-known/jwks.json` in this field. CloudSync uses the issuer URL and fetches the JWKS document automatically.
135136
- Click **Save**
136137
3. **Generate JWT tokens:**
137138
- Use [Supabase's built-in authentication](https://supabase.com/docs/guides/auth/jwts) to generate tokens
@@ -148,6 +149,6 @@ If you need role-based access control (RLS) or production security:
148149

149150
1. In the CloudSync dashboard, go to the **Tables** tab
150151
2. **Select tables** you want to sync (checkbox each table)
151-
4. Click **Deploy Changes**
152+
3. Click **Deploy Changes**
152153

153154
CloudSync is now active on your selected tables.

0 commit comments

Comments
 (0)