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

Commit

Permalink
feat: update 1.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-lemon committed Mar 28, 2023
1 parent a85a1a9 commit 7383544
Show file tree
Hide file tree
Showing 2 changed files with 3 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.7h",
"version": "1.3.8",
"description": "Front Core Library for Lemoncloud",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions src/core/lemon-storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ export class LemonStorageService {
}

async shouldRefreshToken(): Promise<boolean> {
const expiredTime = await this.storageService.getItem(`${this.prefix}.expiredTime`);
const now = new Date().getTime().toString();

const expiredTime = +(await this.storageService.getItem(`${this.prefix}.expiredTime`));
const now = new Date().getTime();
return now >= expiredTime;
}

Expand Down

0 comments on commit 7383544

Please sign in to comment.