Skip to content

Commit

Permalink
Merge pull request #21 from lemoncloud-io/feature/louis-add-peer-depe…
Browse files Browse the repository at this point in the history
…ndencies

fix: refresh token with identity token
  • Loading branch information
louis-lemon authored Jun 7, 2024
2 parents 15e2e6e + 2ae68b2 commit af36914
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lemoncloud/lemon-web-core",
"version": "1.0.12",
"description": "Shared library for LEMONCLOUD",
"description": "Core Web-based Library for signing request at LEMONCLOUD",
"repository": "lemoncloud-io/lemon-web-core",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -130,5 +130,10 @@
"aws-sdk": "^2.1630.0",
"axios": "^1.7.2",
"crypto-js": "^4.2.0"
},
"peerDependencies": {
"aws-sdk": "^2.1630.0",
"axios": "^1.7.2",
"crypto-js": "^4.2.0"
}
}
1 change: 1 addition & 0 deletions src/core/aws-web.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export class AWSWebCore implements WebCoreService {
);
const refreshToken = {
...response.data,
identityToken: response.data.identityToken || cached.identityToken,
identityPoolId: cached.identityPoolId,
};
this.logger.info('success to refresh token');
Expand Down

0 comments on commit af36914

Please sign in to comment.