Skip to content

Commit

Permalink
Fix cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
zobweyt authored Sep 15, 2024
1 parent 6bc582b commit e8a78d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/http/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const getIsLoggedIn = cache(async () => {
const isLoggedIn = jwt !== undefined && Date.parse(jwt.expires_at) > Date.now();

return isLoggedIn;
}, "$getIsLoggedIn");
}, "isLoggedIn");

/**
* Retrieves the session expiration date.
Expand All @@ -25,4 +25,4 @@ export const getSessionExpirationDate = cache(async () => {
const sessionExpirationDate = jwt ? Date.parse(jwt.expires_at) : Date.now();

return sessionExpirationDate;
}, "$getSessionExpiresAt");
}, "sessionExpirationDate");

0 comments on commit e8a78d3

Please sign in to comment.