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) }