Skip to content

Commit

Permalink
remove redundant created and expired at
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaRip committed Sep 20, 2024
1 parent 7c9b1e8 commit 6857ec7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/client/src/utils/AccessToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export default class AccessToken {
return null;
}

token.createdAt = new Date(token.createdAt);
token.expiresAt = new Date(token.expiresAt);

if (token.expiresAt < new Date()) {
localStorage.removeItem(this.dataKey);
navigate(`${Config.basePath}/login`);
Expand Down

0 comments on commit 6857ec7

Please sign in to comment.