Skip to content

Commit af36914

Browse files
authored
Merge pull request #21 from lemoncloud-io/feature/louis-add-peer-dependencies
fix: refresh token with identity token
2 parents 15e2e6e + 2ae68b2 commit af36914

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@lemoncloud/lemon-web-core",
33
"version": "1.0.12",
4-
"description": "Shared library for LEMONCLOUD",
4+
"description": "Core Web-based Library for signing request at LEMONCLOUD",
55
"repository": "lemoncloud-io/lemon-web-core",
66
"exports": "./dist/index.js",
77
"types": "./dist/index.d.ts",
@@ -130,5 +130,10 @@
130130
"aws-sdk": "^2.1630.0",
131131
"axios": "^1.7.2",
132132
"crypto-js": "^4.2.0"
133+
},
134+
"peerDependencies": {
135+
"aws-sdk": "^2.1630.0",
136+
"axios": "^1.7.2",
137+
"crypto-js": "^4.2.0"
133138
}
134139
}

src/core/aws-web.core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ export class AWSWebCore implements WebCoreService {
257257
);
258258
const refreshToken = {
259259
...response.data,
260+
identityToken: response.data.identityToken || cached.identityToken,
260261
identityPoolId: cached.identityPoolId,
261262
};
262263
this.logger.info('success to refresh token');

0 commit comments

Comments
 (0)