@leapdev/auth-agent 2.2.11-beta.0 → 2.2.12
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/CHANGELOG.md +8 -0
- package/README.md +8 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## 2.2.*
|
|
4
4
|
|
|
5
|
+
### [2.2.12]
|
|
6
|
+
#### Bugfixes
|
|
7
|
+
* Update pubnub to v7.4.0 to fix Vulnerability warnings from Synopsis scan
|
|
8
|
+
|
|
9
|
+
### [2.2.11]
|
|
10
|
+
#### Features
|
|
11
|
+
* In function AuthAgent.getRefreshedAccessToken(force?: boolean) & AuthAgent.getDecodedRefreshedAccessToken(force?: boolean), now user can provide "force" with boolean value. AuthAgent will force to get a refreshed access token even the existing token is not expired
|
|
12
|
+
|
|
5
13
|
### [2.2.10]
|
|
6
14
|
#### Features
|
|
7
15
|
* In function AuthAgent.init(), now user can provide "rememberMe" with boolean value. AuthAgent will put "remember_me=true/false" in the login query
|
package/README.md
CHANGED
|
@@ -108,6 +108,10 @@ Returns **[String][36]** The access_token
|
|
|
108
108
|
|
|
109
109
|
## getRefreshedAccessToken
|
|
110
110
|
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
- `force` **[boolean][36]** Optional parameter and if it is true, it will force to get a refreshed token even the exiting token is not expired
|
|
114
|
+
|
|
111
115
|
Allows to retrieve the encoded refreshed access_token.
|
|
112
116
|
This function is similar to "getAccessToken", except it is an async and it would firstly check if the current access token expires. It the access token does expire and it has a refreshToken, it would refresh the access token and return a new access token
|
|
113
117
|
|
|
@@ -121,6 +125,10 @@ Returns **[object][35]** The decoded access_token
|
|
|
121
125
|
|
|
122
126
|
## getDecodedRefreshedAccessToken
|
|
123
127
|
|
|
128
|
+
### Parameters
|
|
129
|
+
|
|
130
|
+
- `force` **[boolean][36]** Optional parameter and if it is true, it will force to get a refreshed token even the exiting token is not expired
|
|
131
|
+
|
|
124
132
|
Allows to retrieve the decoded refreshed access_token
|
|
125
133
|
|
|
126
134
|
Returns **[Promise][39]** The decoded access_token
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leapdev/auth-agent",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12",
|
|
4
4
|
"description": "LEAP Auth Agent",
|
|
5
5
|
"license": "LEAP Legal Software, PTY LTD",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"lodash": "^4.17.21",
|
|
10
10
|
"uuid": "^8.3.2",
|
|
11
|
-
"pubnub": "7.
|
|
11
|
+
"pubnub": "7.4.0",
|
|
12
12
|
"tslib": "^2.3.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {}
|