api/jwt: fix timestamp to match the spec

This commit is contained in:
wukko
2024-08-17 17:58:40 +06:00
parent 580ca042f3
commit 9592e59f76
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ export const requestSession = async() => {
}
export const getSession = async () => {
const currentTime = new Date().getTime();
const currentTime = Math.floor(new Date().getTime() / 1000);
const cache = get(cachedSession);
if (cache?.token && cache?.exp > currentTime) {