Skip to content

Commit

Permalink
feat: Extend admin auth session to 3 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatanaatos committed Sep 9, 2024
1 parent e86e639 commit 06bd52c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface AdminTokenData {

export default class AdminAuthSession {
/** Session lifetime in seconds */
static TTL = config.nodeEnv === "development" ? 365 * 24 * 60 * 60 : 10 * 60;
static TTL = config.nodeEnv === "development" ? 365 * 24 * 60 * 60 : 60 * 60 * 3;

private readonly sign: typeof SignerSync;
private readonly verify: typeof VerifierSync;
Expand Down

0 comments on commit 06bd52c

Please sign in to comment.