diff --git a/lib/client.js b/lib/client.js index 9ebdf7c4..1524e618 100644 --- a/lib/client.js +++ b/lib/client.js @@ -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) * } @@ -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); };