mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-27 16:37:27 +00:00
22 lines
333 B
JavaScript
22 lines
333 B
JavaScript
'use strict';
|
|
|
|
const { Client, fsKeysStorage } = require('../index');
|
|
|
|
const loadConfig = require('./loadConfig');
|
|
|
|
module.exports = ({
|
|
url,
|
|
partnerId,
|
|
userId,
|
|
hostId,
|
|
passphrase,
|
|
keyStoragePath,
|
|
} = loadConfig()) => new Client({
|
|
url,
|
|
partnerId,
|
|
userId,
|
|
hostId,
|
|
passphrase,
|
|
keyStorage: fsKeysStorage(keyStoragePath),
|
|
});
|