@friggframework/core 2.0.0--canary.531.14108ff.0 → 2.0.0--canary.531.eec57c3.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.
|
@@ -115,7 +115,10 @@ class OAuth2Requester extends Requester {
|
|
|
115
115
|
*/
|
|
116
116
|
async setTokens(params) {
|
|
117
117
|
this.access_token = get(params, 'access_token');
|
|
118
|
-
|
|
118
|
+
const newRefreshToken = get(params, 'refresh_token', null);
|
|
119
|
+
if (newRefreshToken !== null) {
|
|
120
|
+
this.refresh_token = newRefreshToken;
|
|
121
|
+
}
|
|
119
122
|
const accessExpiresIn = get(params, 'expires_in', null);
|
|
120
123
|
const refreshExpiresIn = get(
|
|
121
124
|
params,
|
|
@@ -124,7 +127,9 @@ class OAuth2Requester extends Requester {
|
|
|
124
127
|
);
|
|
125
128
|
|
|
126
129
|
this.accessTokenExpire = new Date(Date.now() + accessExpiresIn * 1000);
|
|
127
|
-
|
|
130
|
+
if (refreshExpiresIn !== null) {
|
|
131
|
+
this.refreshTokenExpire = new Date(Date.now() + refreshExpiresIn * 1000);
|
|
132
|
+
}
|
|
128
133
|
|
|
129
134
|
await this.notify(this.DLGT_TOKEN_UPDATE);
|
|
130
135
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.531.
|
|
4
|
+
"version": "2.0.0--canary.531.eec57c3.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@friggframework/eslint-config": "2.0.0--canary.531.
|
|
42
|
-
"@friggframework/prettier-config": "2.0.0--canary.531.
|
|
43
|
-
"@friggframework/test": "2.0.0--canary.531.
|
|
41
|
+
"@friggframework/eslint-config": "2.0.0--canary.531.eec57c3.0",
|
|
42
|
+
"@friggframework/prettier-config": "2.0.0--canary.531.eec57c3.0",
|
|
43
|
+
"@friggframework/test": "2.0.0--canary.531.eec57c3.0",
|
|
44
44
|
"@prisma/client": "^6.17.0",
|
|
45
45
|
"@types/lodash": "4.17.15",
|
|
46
46
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "eec57c3f5045f0392b26b97e5a12041b14986219"
|
|
84
84
|
}
|