From 2bda381cd27d0d9c751eb9f8ce6a5fd80b5f46df Mon Sep 17 00:00:00 2001 From: Chris Tran Date: Wed, 4 Sep 2024 11:37:52 -0500 Subject: [PATCH] fix: PSG-4604 fix passage header (#36) * chore: fixes the name of the passage version header * Change files --- ...age-flex-node-44853f5e-d0ec-44a7-9964-abe101973c73.json | 7 +++++++ src/utils/apiConfiguration.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 change/@passageidentity-passage-flex-node-44853f5e-d0ec-44a7-9964-abe101973c73.json diff --git a/change/@passageidentity-passage-flex-node-44853f5e-d0ec-44a7-9964-abe101973c73.json b/change/@passageidentity-passage-flex-node-44853f5e-d0ec-44a7-9964-abe101973c73.json new file mode 100644 index 0000000..8ec043b --- /dev/null +++ b/change/@passageidentity-passage-flex-node-44853f5e-d0ec-44a7-9964-abe101973c73.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: fixes the name of the passage version header", + "packageName": "@passageidentity/passage-flex-node", + "email": "chris.tran@agilebits.com", + "dependentChangeType": "patch" +} diff --git a/src/utils/apiConfiguration.ts b/src/utils/apiConfiguration.ts index 479f6c9..f7979ea 100644 --- a/src/utils/apiConfiguration.ts +++ b/src/utils/apiConfiguration.ts @@ -14,7 +14,7 @@ export default function apiConfiguration(config?: ConfigurationParameters): Conf headers: { ...config?.headers, 'Authorization': `Bearer ${config?.accessToken}`, - 'Passage-Flex-Version': process.env.npm_package_version || '', + 'Passage-Version': `passage-flex-node ${process.env.npm_package_version ?? ''}`, }, middleware: [], });