mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/jwt: return relative expiration date to accommodate offset clocks
This commit is contained in:
@ -28,7 +28,7 @@ export const generate = () => {
|
||||
|
||||
return {
|
||||
token: `${header}.${payload}.${signature}`,
|
||||
exp,
|
||||
exp: env.jwtLifetime - 2,
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user