Skip to content

Commit

Permalink
feat(clerk-sdk-node): Add custom header X-Clerk-SDK in request for SD…
Browse files Browse the repository at this point in the history
…K version

Add a custom header X-Clerk-SDK in every request which contains the current SDK version with the following format 'node/<version>'
  • Loading branch information
chanioxaris committed Feb 3, 2022
1 parent aefd413 commit 84986d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk-node/src/Clerk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default class Clerk extends ClerkBackendAPI {
authorization,
'Content-Type': contentType,
'User-Agent': userAgent,
'X-Clerk-SDK': `node/${LIB_VERSION}`,
},
// @ts-ignore
...(body && { body: querystring.stringify(body) }),
Expand Down

0 comments on commit 84986d8

Please sign in to comment.