Skip to content

Commit

Permalink
Fix tests by applying http options on a per request basis
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Mar 26, 2020
1 parent feef0a3 commit 82f1a0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ async function get(config) {
config.enableTelemetry && {'Auth0-Client': Buffer.from(JSON.stringify(telemetryHeader)).toString('base64')}
);

custom.setHttpOptionsDefaults(httpOptions);
client[custom.http_options] = function(options) {
return Object.assign({}, options, httpOptions);
};

client[custom.clock_tolerance] = config.clockTolerance;

Expand Down

0 comments on commit 82f1a0d

Please sign in to comment.