Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fix: hotfix identityPool data
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-lemon committed Mar 28, 2023
1 parent 4cde055 commit a85a1a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lemoncloud/lemon-front-lib",
"version": "1.3.7f",
"version": "1.3.7h",
"description": "Front Core Library for Lemoncloud",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/core/identity.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class IdentityService {
return 'build credentials!';
}

private async refreshCachedToken(): Promise<LemonRefreshTokenResult | null> {
async refreshCachedToken(): Promise<LemonRefreshTokenResult | null> {
this.logger.log('refreshCachedToken()...');
const originToken: LemonOAuthTokenResult = await this.lemonStorage.getCachedLemonOAuthToken();
const payload: SignaturePayload = {
Expand Down Expand Up @@ -256,7 +256,7 @@ export class IdentityService {
const { credential } = refreshResult;
const refreshToken: LemonOAuthTokenResult = {
...refreshResult,
identityPoolId: originToken.identityPoolId,
identityPoolId: originToken.identityPoolId || '',
identityToken: originToken.identityToken,
};
await this.lemonStorage.saveLemonOAuthToken(refreshToken);
Expand Down
2 changes: 1 addition & 1 deletion src/helper/types/lemon-oauth-token.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ export interface LemonOAuthTokenResult {
authId: string;
credential: LemonCredentials;
identityId: string;
identityPoolId: string;
identityToken: string;
identityPoolId?: string;
error?: any;
}

Expand Down

0 comments on commit a85a1a9

Please sign in to comment.