diff --git a/src/server/lib/auth.ts b/src/server/lib/auth.ts index 722d3d0..dbb24a9 100644 --- a/src/server/lib/auth.ts +++ b/src/server/lib/auth.ts @@ -55,7 +55,7 @@ export async function getJwtId(jwt: string) { export function makeJwt(_token: TokenResolvable) { let token = resolve(_token)! let jwt = new jose.SignJWT({ - exp: token.expire || undefined, + exp: token.expire ? token.expire/1000 : undefined, sub: token.account, jti: token.id, ...(token.type != "User" ? { scope: token.scopes } : {})