From 532538165f07076b6d09d8cbd8a32b3a95a3aeac Mon Sep 17 00:00:00 2001 From: enrique Date: Thu, 8 Aug 2024 13:31:41 +0200 Subject: [PATCH] feat: rename --- package.json | 2 +- src/nevermined/utils/WebServiceConnector.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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(