Skip to content

Commit 4b3609c

Browse files
authored
Merge pull request #101 from terminusdb/fixSetApi
fixed setApiKey function to include latest token strategy
2 parents c46ee86 + 14a933a commit 4b3609c

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)