Skip to content

Commit

Permalink
Merge pull request #701 from nevermined-io/feat/rename
Browse files Browse the repository at this point in the history
feat: rename
  • Loading branch information
eruizgar91 authored Aug 8, 2024
2 parents 2cf50eb + 9539f3b commit 64e2230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/sdk",
"version": "3.0.23",
"version": "3.0.24",
"description": "Javascript SDK for connecting with Nevermined Data Platform ",
"main": "./dist/node/sdk.js",
"typings": "./dist/node/sdk.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/nevermined/utils/WebServiceConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ export class WebServiceConnector {
url: string,
grantToken: string,
numberTries = 1,
nvmApiKey?: string,
apiKeyHash?: string,
): Promise<Response> {
const bodyParams = new URLSearchParams({
client_assertion_type: JwtUtils.CLIENT_ASSERTION_TYPE,
client_assertion: grantToken,
})

if (nvmApiKey) {
bodyParams.append('nevermined_api_key', nvmApiKey)
if (apiKeyHash) {
bodyParams.append('nvm_key_hash', apiKeyHash)
}

return await fetch(
Expand Down

0 comments on commit 64e2230

Please sign in to comment.