node-ebics-client/examples/getClient.js

22 lines
333 B
JavaScript
Raw Normal View History

2019-12-18 14:48:05 +00:00
'use strict';
const { Client, fsKeysStorage } = require('../index');
const loadConfig = require('./loadConfig');
module.exports = ({
2019-12-30 09:07:24 +00:00
url,
2019-12-18 14:48:05 +00:00
partnerId,
userId,
hostId,
passphrase,
keyStoragePath,
} = loadConfig()) => new Client({
2019-12-30 09:07:24 +00:00
url,
2019-12-18 14:48:05 +00:00
partnerId,
userId,
hostId,
passphrase,
keyStorage: fsKeysStorage(keyStoragePath),
});