Skip to content

Commit

Permalink
Merge pull request #225 from rv-vmartyniuk/issue-219
Browse files Browse the repository at this point in the history
Fixed #219
  • Loading branch information
rossgrambo-zz authored Feb 26, 2021
2 parents 931a2a8 + 3756224 commit bb1128a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Client.prototype.useAccessToken = function(accessToken) {
* @option {Function} [refreshCredentialsCallback] An optional callback
* function to execute once the authenticator auto refreshes
* access credentials.
* For Example:
* For Example:
* function(credentials){
* console.log("Your new credentials are:"+credentials)
* }
Expand Down Expand Up @@ -238,13 +238,7 @@ Client.prototype.useOauth = function(options) {
Client.create = function(options) {
options = options || {};
return new Client(
new Dispatcher({
asanaBaseUrl: options.asanaBaseUrl,
timeout: options.requestTimeout,
defaultHeaders: options.defaultHeaders,
defaultProxy: options.defaultProxy,
logAsanaChangeWarnings: options.logAsanaChangeWarnings
}),
new Dispatcher(options),
options);
};

Expand Down

0 comments on commit bb1128a

Please sign in to comment.