mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-12-18 02:20:40 +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),
|
|
});
|