@spritz-finance/service-client 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/credentials.js +0 -10
  2. package/package.json +2 -2
@@ -29,20 +29,10 @@ const config_1 = require("./config");
29
29
  const params_1 = require("./params");
30
30
  const logger_1 = __importDefault(require("@spritz-finance/logger"));
31
31
  const getServiceCredentials = async () => {
32
- logger_1.default.info(`Getting credentials`);
33
32
  try {
34
33
  const clientIdParam = `/${config_1.config.env}/auth/serviceClientId`;
35
34
  const clientSecretParam = `/${config_1.config.env}/auth/serviceClientSecret`;
36
35
  const paramsByKey = await (0, params_1.getParams)([clientIdParam, clientSecretParam]);
37
- logger_1.default.info(`params`, [
38
- config_1.config.authEndpoint,
39
- qs.stringify({
40
- grant_type: 'client_credentials',
41
- scope: 'spritz/service',
42
- client_id: paramsByKey[clientIdParam],
43
- client_secret: paramsByKey[clientSecretParam],
44
- }),
45
- ]);
46
36
  const { data } = await axios_1.default.post(config_1.config.authEndpoint, qs.stringify({
47
37
  grant_type: 'client_credentials',
48
38
  scope: 'spritz/service',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "coverageDirectory": "../coverage",
48
48
  "testEnvironment": "node"
49
49
  },
50
- "gitHead": "13eb8e8ad722fbf5c9676cef8862619e5d5a6b74"
50
+ "gitHead": "ada3816bd364b63747d0e8210c899e287e7ad322"
51
51
  }