Skip to content

Commit 92f9579

Browse files
Minor refinements to db webhooks section
1 parent 668f818 commit 92f9579

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,21 @@ If the command ☝️ doesn't work for you, try executing the command with the `
201201

202202
### Create Database Webhook
203203

204-
For detailed instructions on creating a webhooks, please refer to the [Supabase docs](/assets/webhook-setup/02-select-create-a-new-webhook.png).
204+
For complete instructions on creating a webhooks, please refer to the [Supabase docs](/assets/webhook-setup/02-select-create-a-new-webhook.png).
205205

206-
![Database Webhooks page](/assets/webhook-setup/02-select-create-a-new-webhook.png)
206+
![Sample hook](/assets/webhook-setup/03-select-confirm.png)
207207

208-
1. Select **Create a new hook** button
208+
1. From the Database -> Webhooks page Select **Create a new hook** button
209209
2. Name the hook "push-order-confirmation-to-user"
210210
3. Set the table to `orders`
211211
4. Select **Insert** checkbox
212212
5. Set hook type to HTTP Request
213213
6. Set the HTTP request method to **POST**
214214
7. Set the URL to the edge function, `push-order-confirmation-to-customer`
215215
8. Add a HTTP Header named `Authorization` and set the value to `Bearer [Your Supabase project's anonKey]`
216-
9. Select **Confirm** confirm button to complete setup ![Review before confirm](/assets/webhook-setup/03-select-confirm.png)
216+
9. Select **Confirm** confirm button to complete setup
217+
218+
💡We need to include the Authorization header so the edge function can verify the request. Without this header, anyone would be able to call our endpoint.
217219

218220
## How to the Test
219221

0 commit comments

Comments
 (0)