|
1 | 1 | 1. In your Supabase Dashboard, click **Connect** in the top bar: |
2 | | - |
3 | | - <Frame> |
4 | | - <img src="/images/installation/supabase-connect-database.png" /> |
5 | | - </Frame> |
| 2 | + |
| 3 | + <Frame> |
| 4 | + <img src="/images/installation/supabase-connect-database.png" /> |
| 5 | + </Frame> |
6 | 6 |
|
7 | 7 | * Under **Direct connection**, copy the connection string. The hostname should be `db.<PROJECT-ID>.supabase.co`, and not, for example, `aws-0-us-west-1.pooler.supabase.com`. |
8 | | - |
9 | | - <Frame> |
10 | | - <img src="/images/installation/supabase-connection-string.png" /> |
11 | | - </Frame> |
12 | 8 |
|
13 | | - * Paste this URI in PowerSync instance **URI** field. |
| 9 | + <Frame> |
| 10 | + <img src="/images/installation/supabase-connection-string.png" /> |
| 11 | + </Frame> |
14 | 12 |
|
15 | | - * Enter the **Password** for the `postgres` user in your Supabase database. |
| 13 | + * Paste this URI in PowerSync instance **URI** field. |
16 | 14 |
|
17 | | - * Supabase also [refers to this password](https://supabase.com/docs/guides/database/managing-passwords) as the *database password* or *project password*. |
| 15 | + * Enter the **Password** for the `postgres` user in your database (not your Supabase account). Supabase also [refers to this password](https://supabase.com/docs/guides/database/managing-passwords) as the *database password* or *project password*. |
18 | 16 |
|
19 | 17 | * PowerSync has the Supabase CA certificate pre-configured — `verify-full` SSL mode can be used directly, without any custom certificates. |
20 | 18 |
|
| 19 | + It should look similar to this: |
| 20 | + |
| 21 | + <Frame> |
| 22 | + <img src="/images/integration-guides/powersync-supabase-connection.png" /> |
| 23 | + </Frame> |
| 24 | + |
21 | 25 | 2. Click **Test Connection** and fix any errors. |
22 | 26 |
|
23 | 27 | 3. Under the **Client Auth** tab, enable **Use Supabase Auth** and enter your Supabase **JWT Secret**: |
24 | | - |
| 28 | + |
25 | 29 | <Frame caption="PowerSync uses the secret to verify Supabase's JWTs"> |
26 | 30 | <img src="/images/authentication/use-supabase-auth.png" /> |
27 | 31 | </Frame> |
28 | 32 |
|
29 | 33 | 4. Click **Save and deploy** to deploy the updates to your instance. |
30 | 34 |
|
31 | | -PowerSync deploys and configures an isolated cloud environment for you, which will take a few minutes to complete. |
| 35 | +PowerSync deploys and configures an isolated cloud environment for you, which will take a few minutes to complete. |
0 commit comments