Skip to content

Commit 3c1459b

Browse files
fixed authentication
1 parent 3729595 commit 3c1459b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/testHelpers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const apiClient = new docusign.ApiClient({
1414

1515
const authenticate = async (apiTypes) => {
1616
try {
17-
const privateKeyFile = fs.readFileSync(path.resolve(__dirname, PRIVATE_KEY_FILENAME));
17+
const privateKeyFile = config.privateKey
18+
? config.privateKey
19+
: fs.readFileSync(path.resolve(__dirname, PRIVATE_KEY_FILENAME));
1820

1921
let scopes = SCOPES;
2022

0 commit comments

Comments
 (0)