freedom-accounts-util
Version:
Utility helper for OAuth2.0 calls to Freedom! Accounts
22 lines (16 loc) • 371 B
JavaScript
const _ = require('lodash');
const config = {
base_url: '',
path: '',
client_id: '',
client_secret: '',
client_expiry: 300, // in seconds
server_expiry: 300, // in seconds
disable_caching: false,
retry_count: 3,
configure: configure
};
module.exports = config;
function configure (new_config) {
_.merge(config, new_config);
}