@accounter/server
Version:
The test suite is split into three Vitest projects for efficiency and isolation:
18 lines • 654 B
JavaScript
import { getMeshSDK } from './mesh-artifacts/index.js';
export const init = async (id, secret) => {
const authParams = {
id,
secret,
};
const greenInvoiceToken = await fetch('https://api.greeninvoice.co.il/api/v1/account/token', {
method: 'POST',
body: JSON.stringify(authParams),
headers: { 'Content-Type': 'application/json' },
})
.then(res => res.json())
.then((res) => res.token);
const sdk = await getMeshSDK({ authToken: greenInvoiceToken });
return { sdk, authToken: greenInvoiceToken };
};
export * from './mesh-artifacts/index.js';
//# sourceMappingURL=index.js.map