Skip to content

Commit f2c7af7

Browse files
committed
docs: Update example code and description based on suggestions
1 parent 1cfb2a3 commit f2c7af7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/06-concepts/07-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ In addition to the predefined secrets above, you can define custom passwords usi
8989

9090
#### Example
9191

92-
To define a custom password, set it as an environment variable:
92+
To define a custom password through an environment variable, set it as an environment variable with the prefix:
9393

9494
```bash
95-
export SERVERPOD_PASSWORD_stripe_api_key=sk_test_123...
95+
export SERVERPOD_PASSWORD_stripeApiKey=sk_test_123...
9696
```
9797

9898
You can then access it in your endpoint code:
9999

100100
```dart
101101
Future<void> processPayment(Session session, PaymentData data) async {
102-
final stripeApiKey = session.passwords['stripe_api_key'];
102+
final stripeApiKey = session.passwords['stripeApiKey'];
103103
// Use the API key to make requests to Stripe
104104
...
105105
}

0 commit comments

Comments
 (0)