Skip to content

Commit 13457a6

Browse files
committed
lib: add support for usertokens
1 parent 10fcc10 commit 13457a6

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickbase",
3-
"version": "2.6.0",
3+
"version": "2.7.0",
44
"description": "A lightweight, very flexible QuickBase API",
55
"keywords": [
66
"QuickBase",

quickbase.browserify.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quickbase.es5.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var defaults = {
9494
username: '',
9595
password: '',
9696
appToken: '',
97+
userToken: '',
9798
ticket: '',
9899

99100
flags: {
@@ -404,6 +405,10 @@ var QueryBuilder = function () {
404405
this.options.apptoken = this.settings.appToken;
405406
}
406407

408+
if (!this.options.hasOwnProperty('userToken') && this.settings.userToken) {
409+
this.options.usertoken = this.settings.userToken;
410+
}
411+
407412
if (!this.options.hasOwnProperty('ticket') && this.settings.ticket) {
408413
this.options.ticket = this.settings.ticket;
409414
}

quickbase.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ const defaults = {
7474
username: '',
7575
password: '',
7676
appToken: '',
77+
userToken: '',
7778
ticket: '',
7879

7980
flags: {
@@ -365,6 +366,10 @@ class QueryBuilder {
365366
this.options.apptoken = this.settings.appToken;
366367
}
367368

369+
if (!this.options.hasOwnProperty('userToken') && this.settings.userToken) {
370+
this.options.usertoken = this.settings.userToken;
371+
}
372+
368373
if (!this.options.hasOwnProperty('ticket') && this.settings.ticket) {
369374
this.options.ticket = this.settings.ticket;
370375
}

quickbase.sa.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)