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