From 14a933a9f1e8371f4af0d227aecea615b988f3cc Mon Sep 17 00:00:00 2001 From: NeelParihar Date: Thu, 13 Jan 2022 16:36:28 +0530 Subject: [PATCH] fixed setApiKey function to include latest token strategy Signed-off-by: NeelParihar --- lib/woqlClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/woqlClient.js b/lib/woqlClient.js index 1e0bdac9..108e9cf3 100644 --- a/lib/woqlClient.js +++ b/lib/woqlClient.js @@ -58,7 +58,7 @@ function WOQLClient(serverUrl, params) { WOQLClient.prototype.setApiKey = function (accessToken){ const currentAuth= this.connectionConfig.localAuth() || {} currentAuth['key'] = accessToken - currentAuth['type'] = 'jwt' + currentAuth['type'] = 'apikey' this.connectionConfig.setLocalAuth(currentAuth) }