mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 15:06:26 -08:00
correct exp claim in jwts
This commit is contained in:
parent
eb981afe2e
commit
ebcdd0c603
|
@ -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 } : {})
|
||||
|
|
Loading…
Reference in a new issue