mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix signLifetime
This commit is contained in:
parent
4a2c852547
commit
ff5f156ed0
@ -51,7 +51,7 @@ export default class Server {
|
|||||||
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
|
jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(),
|
||||||
secretOrKey: this.server.oskid,
|
secretOrKey: this.server.oskid,
|
||||||
algorithms: ["sha1", "RS256", "HS256"],
|
algorithms: ["sha1", "RS256", "HS256"],
|
||||||
expiresIn: this.env.signLifetime ?? "10s",
|
expiresIn: this.env.signLifetime ?? "1h",
|
||||||
enforceRegenerationTokenExpiration: false,
|
enforceRegenerationTokenExpiration: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user