@mimik/oauth-helper 4.0.0 → 4.0.2
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/README.md +1 -1
- package/index.js +3 -2
- package/package.json +14 -14
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ Promise.config({ cancellation: true });
|
|
|
11
11
|
/**
|
|
12
12
|
* @module oauth-helper
|
|
13
13
|
* @example
|
|
14
|
-
*
|
|
14
|
+
* import oauthHelper from '@mimik/oauth-helper';
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
const TOKEN_REFRESH_TOLERANCE = 900; // in seconds
|
|
@@ -44,7 +44,7 @@ const createToken = (value) => {
|
|
|
44
44
|
return token;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
const oauthHelper = (config) => {
|
|
48
48
|
const { server } = config.security;
|
|
49
49
|
const getToken = (type, origin, correlationId, options) => {
|
|
50
50
|
const tokenOptions = {
|
|
@@ -238,6 +238,7 @@ export default (config) => {
|
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
+
export default oauthHelper;
|
|
241
242
|
/**
|
|
242
243
|
* This callback is displayed as a global member.
|
|
243
244
|
* @callback requestCallback
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/oauth-helper",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Oauth helper for mimik microservices",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,26 +29,26 @@
|
|
|
29
29
|
"url": "https://bitbucket.org/mimiktech/oauth-helper"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mimik/request-retry": "^4.0.
|
|
33
|
-
"@mimik/response-helper": "^4.0.
|
|
34
|
-
"@mimik/sumologic-winston-logger": "^2.0.
|
|
32
|
+
"@mimik/request-retry": "^4.0.3",
|
|
33
|
+
"@mimik/response-helper": "^4.0.4",
|
|
34
|
+
"@mimik/sumologic-winston-logger": "^2.0.3",
|
|
35
35
|
"bluebird": "3.7.2",
|
|
36
36
|
"jsonwebtoken": "9.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@eslint/js": "9.
|
|
40
|
-
"@mimik/eslint-plugin-document-env": "^2.0.
|
|
41
|
-
"@mimik/request-helper": "2.0.
|
|
42
|
-
"@stylistic/eslint-plugin": "
|
|
39
|
+
"@eslint/js": "9.31.0",
|
|
40
|
+
"@mimik/eslint-plugin-document-env": "^2.0.8",
|
|
41
|
+
"@mimik/request-helper": "2.0.2",
|
|
42
|
+
"@stylistic/eslint-plugin": "5.2.1",
|
|
43
43
|
"c8": "10.1.3",
|
|
44
44
|
"body-parser": "2.2.0",
|
|
45
|
-
"chai": "5.2.
|
|
46
|
-
"eslint": "9.
|
|
47
|
-
"eslint-plugin-import": "2.
|
|
48
|
-
"express": "
|
|
45
|
+
"chai": "5.2.1",
|
|
46
|
+
"eslint": "9.31.0",
|
|
47
|
+
"eslint-plugin-import": "2.32.0",
|
|
48
|
+
"express": "5.1.0",
|
|
49
49
|
"husky": "9.1.7",
|
|
50
|
-
"jsdoc-to-markdown": "9.1.
|
|
51
|
-
"mocha": "11.1
|
|
50
|
+
"jsdoc-to-markdown": "9.1.2",
|
|
51
|
+
"mocha": "11.7.1",
|
|
52
52
|
"mochawesome": "7.1.3"
|
|
53
53
|
}
|
|
54
54
|
}
|