mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
api/jwt: fix timestamp to match the spec
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user