@occtoo/destination-client
Advanced tools
Comparing version 0.0.20 to 0.0.21
{ | ||
"name": "@occtoo/destination-client", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "CLI", |
@@ -60,4 +60,5 @@ <p align="center"> | ||
const destinationClient = new DestinationClient({ | ||
headers: { | ||
Authorization: "Bearer ...", | ||
credentials: { | ||
clientId: process.env.DESTINATION_APP_ID, | ||
clientSecret: process.env.DESTINATION_APP_SECRET, | ||
}, | ||
@@ -120,6 +121,6 @@ }); | ||
```javascript | ||
const destination = new DestinationClient({ | ||
const destinationClient = new DestinationClient({ | ||
credentials: { | ||
clientId: "...", | ||
clientSecret: "...", | ||
clientId: process.env.DESTINATION_APP_ID, | ||
clientSecret: process.env.DESTINATION_APP_SECRET, | ||
}, | ||
@@ -132,3 +133,3 @@ }); | ||
```javascript | ||
await destination.authenticate(); | ||
await destinationClient.authenticate(); | ||
``` | ||
@@ -141,5 +142,5 @@ | ||
```javascript | ||
const destination = new DestinationClient({ | ||
const destinationClient = new DestinationClient({ | ||
headers: { | ||
Authorization: "Bearer ...", | ||
Authorization: "Bearer <access_token>", | ||
} | ||
@@ -146,0 +147,0 @@ }); |
26748
156