@healthcloudai/hc-settings-connector 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -732,17 +732,12 @@ The client returns the raw backend response from the authenticated `PUT` request
|
|
|
732
732
|
|
|
733
733
|
## API Key
|
|
734
734
|
|
|
735
|
-
|
|
735
|
+
Use `setApiKey(...)` to attach an API key header to requests from `HCSettingsClient`.
|
|
736
736
|
|
|
737
737
|
```ts
|
|
738
738
|
const apiKey = process.env.HEALTHCLOUD_API_KEY;
|
|
739
|
-
|
|
740
|
-
if (apiKey) {
|
|
741
|
-
settingsClient.setApiKey("x-api-key", apiKey);
|
|
742
|
-
}
|
|
739
|
+
settingsClient.setApiKey("x-api-key", apiKey);
|
|
743
740
|
```
|
|
744
741
|
|
|
745
742
|
- Header name should be `x-api-key`.
|
|
746
|
-
- API key is optional unless required by the backend.
|
|
747
|
-
- If not set, behavior remains unchanged and the header is omitted.
|
|
748
743
|
- The API key is also included on the internal patient header lookup used to resolve the active `EHR`.
|