- Log into to your Salesforce org
- Click on Setup in the upper right-hand menu (Classic)
- Build > Create > App
- Under Connected Apps, click "New"
- Create an app with the following settings:
- Connected App Name
- API Name
- Contact Email
- Enable OAuth Settings under the API dropdown
- Add the following scopes:
- Access and manage your data (api)
- Access your basic information (id, profile, email, phone)
- Perform requests on your behalf at any time (refresh_token, offline_access)
- Provide accesss to your data via the Web (web)
- Set callback URL to:
http://localhost:42834/callback http://localhost:29562/callback http://localhost:38853/callback http://localhost:40011/callback http://localhost:44774/callback http://localhost:47599/callback
- Require Secret for Web Server Flow - checked
yarn install
- Create a
.env
file and your consumer key/secret:
ELECTRON_WEBPACK_APP_SALESFORCE_CLIENT_ID=<your-consumer-id>
ELECTRON_WEBPACK_APP_SALESFORCE_CLIENT_SECRET=<your-consumer-secret>
yarn dev