diff --git a/package.json b/package.json index 20b526b..dde271d 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/src/core/aws-web.core.ts b/src/core/aws-web.core.ts index dd0f85f..fccaca5 100644 --- a/src/core/aws-web.core.ts +++ b/src/core/aws-web.core.ts @@ -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');