Skip to content

Commit

Permalink
Merge pull request #240 from Sensotrend/fix/client-certs
Browse files Browse the repository at this point in the history
Fix client certs
  • Loading branch information
mrinnetmaki committed Oct 16, 2023
2 parents 4d89fe1 + 1781b11 commit 28b1fb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/FHIRClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ function FHIRClient(URL, { patient, bearertoken, env } = {}) {
if (env && env.https_certificate) {
options.requestOptions = {
requestOptions: {
cert: env.https_certificate,
key: env.https_privateKey,
https: {
certificate: env.https_certificate,
key: env.https_privateKey,
},
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nightscout-fhir-connect",
"version": "1.4.23",
"version": "1.4.26",
"description": "Nightscout REST API provider for FHIR PHRs",
"repository": "https://github.com/sensotrend/nightscout-fi",
"dependencies": {
Expand Down

0 comments on commit 28b1fb1

Please sign in to comment.