Skip to content

Commit 14a933a

Browse files
fixed setApiKey function to include latest token strategy
Signed-off-by: NeelParihar <[email protected]>
1 parent c46ee86 commit 14a933a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/woqlClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function WOQLClient(serverUrl, params) {
5858
WOQLClient.prototype.setApiKey = function (accessToken){
5959
const currentAuth= this.connectionConfig.localAuth() || {}
6060
currentAuth['key'] = accessToken
61-
currentAuth['type'] = 'jwt'
61+
currentAuth['type'] = 'apikey'
6262
this.connectionConfig.setLocalAuth(currentAuth)
6363
}
6464

0 commit comments

Comments
 (0)