mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-25 07:32:06 +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),
|
|
});
|