api/jwt: return relative expiration date to accommodate offset clocks

This commit is contained in:
wukko
2024-08-19 22:25:21 +06:00
parent 1f3509db07
commit c698d272a1
2 changed files with 4 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export const generate = () => {
return {
token: `${header}.${payload}.${signature}`,
exp,
exp: env.jwtLifetime - 2,
};
}