Skip to content

Commit

Permalink
chore: API_KEY env docs (#120)
Browse files Browse the repository at this point in the history
Fixes #117
  • Loading branch information
kevcodez authored Dec 1, 2024
1 parent c67ae3e commit 5ec346a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
DATABASE_URL=postgres://postgres:postgres@host:5432/postgres?sslmode=disable&search_path=stripe
STRIPE_WEBHOOK_SECRET=whsec_

# API_KEY is used to authenticate "admin" endpoints (i.e. for backfilling), make sure to generate a secure string
API_KEY=api_key_test

# optional
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type configType = {
/** Webhook secret from Stripe to verify the signature of webhook events. */
STRIPE_WEBHOOK_SECRET: string

/** API_KEY is used to authenticate requests to the sync-engine. */
/** API_KEY is used to authenticate "admin" endpoints (i.e. for backfilling), make sure to generate a secure string. */
API_KEY: string

/** Stripe API version for the webhooks, defaults to 2020-08-27 */
Expand Down

0 comments on commit 5ec346a

Please sign in to comment.