@leapdev/auth-agent 2.2.11-beta.0 → 2.2.11

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 2.2.*
4
4
 
5
+ ### [2.2.11]
6
+ #### Features
7
+ * 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
8
+
5
9
  ### [2.2.10]
6
10
  #### Features
7
11
  * 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.11-beta.0",
3
+ "version": "2.2.11",
4
4
  "description": "LEAP Auth Agent",
5
5
  "license": "LEAP Legal Software, PTY LTD",
6
6
  "main": "./src/index.js",