Skip to content

Commit

Permalink
fix: PSG-4604 fix passage header (#36)
Browse files Browse the repository at this point in the history
* chore: fixes the name of the passage version header

* Change files
  • Loading branch information
ctran88 authored Sep 4, 2024
1 parent 2b07c0f commit 2bda381
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: fixes the name of the passage version header",
"packageName": "@passageidentity/passage-flex-node",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion src/utils/apiConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
});
Expand Down

0 comments on commit 2bda381

Please sign in to comment.