Skip to content

Commit

Permalink
doc: ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Dec 14, 2022
1 parent 5a0e8a2 commit d3a89b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ See the [official Pub/Sub API repo](https://github.com/developerforce/pub-sub-ap

## Installation

Create a `.env` file at the root of the project for configuration. You may use either username/password or Connected App with the `client_credentials` flow.
Create a `.env` file at the root of the project for configuration. You may use either username/password or Connected App with the `client_credentials` flow.

> **Warning**<br/>
> Relying on a username/password Salesforce authentication flow for production is not recommended. Consider switching to JWT auth or similar for extra security.
If using a Change Data Capture topic (like in the sample config), make sure to activate the event in Salesforce Setup > Change Data Capture.

### Username / password

### Username / password ###
```properties
SALESFORCE_LOGIN_URL=https://login.salesforce.com
SALESFORCE_USERNAME=YOUR_SALESFORCE_USERNAME
Expand All @@ -26,7 +26,8 @@ PUB_SUB_TOPIC_NAME=/data/AccountChangeEvent
PUB_SUB_EVENT_RECEIVE_LIMIT=1
```

### client_credentials ###
### client_credentials

```properties
SALESFORCE_LOGIN_URL=https://login.salesforce.com
SALESFORCE_CLIENT_ID=CONNECTED_APP_CLIENT_ID
Expand Down

0 comments on commit d3a89b3

Please sign in to comment.