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