@bigid/apps-infrastructure-node-js 1.197.1 → 1.213.0
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.
package/lib/utils/tokenUtil.js
CHANGED
|
@@ -52,10 +52,10 @@ const getTokenByUsernameAndPassword = (username, password) => __awaiter(void 0,
|
|
|
52
52
|
});
|
|
53
53
|
exports.getTokenByUsernameAndPassword = getTokenByUsernameAndPassword;
|
|
54
54
|
const getAuth0Token = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
55
|
-
var
|
|
55
|
+
var _a;
|
|
56
56
|
if (canUseLocalToken(auth0Token))
|
|
57
57
|
return auth0Token;
|
|
58
|
-
const auth0Domain = (
|
|
58
|
+
const auth0Domain = (_a = process.env.AUTH0_DOMAIN) === null || _a === void 0 ? void 0 : _a.replace(/\/$/, '');
|
|
59
59
|
const { data: { access_token }, } = yield axios_1.default.post(`${auth0Domain}/oauth/token`, auth0Payload);
|
|
60
60
|
auth0Token = access_token;
|
|
61
61
|
return access_token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigid/apps-infrastructure-node-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.213.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,17 +26,18 @@
|
|
|
26
26
|
"eslint-config-prettier": "^6.15.0",
|
|
27
27
|
"eslint-plugin-no-only-tests": "2.4.0",
|
|
28
28
|
"eslint-plugin-prettier": "^3.1.4",
|
|
29
|
-
"prettier": "^2.4.1",
|
|
30
29
|
"jsdoc": "4.0.2",
|
|
30
|
+
"prettier": "^2.4.1",
|
|
31
31
|
"typescript": "^4.5.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"axios": "1.
|
|
35
|
-
"express": "4.
|
|
36
|
-
"follow-redirects": "1.15.
|
|
34
|
+
"axios": "1.7.4",
|
|
35
|
+
"express": "4.21.0",
|
|
36
|
+
"follow-redirects": "1.15.6",
|
|
37
37
|
"form-data": "^4.0.0",
|
|
38
38
|
"http-errors": "^1.8.1",
|
|
39
39
|
"log4js": "^6.4.0",
|
|
40
|
+
"minimatch": "3.0.5",
|
|
40
41
|
"mocha": "10.2.0",
|
|
41
42
|
"node-schedule": "2.1.1",
|
|
42
43
|
"ts-node": "10.9.1"
|