diff --git a/package.json b/package.json index 473b8d5ea..3157fcf45 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/nevermined/utils/WebServiceConnector.ts b/src/nevermined/utils/WebServiceConnector.ts index 18c0ec7f4..da0c2fbab 100644 --- a/src/nevermined/utils/WebServiceConnector.ts +++ b/src/nevermined/utils/WebServiceConnector.ts @@ -166,15 +166,15 @@ export class WebServiceConnector { url: string, grantToken: string, numberTries = 1, - nvmApiKey?: string, + apiKeyHash?: string, ): Promise { 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(