Skip to content

Commit

Permalink
Fix Token Expiration in contact move (#230)
Browse files Browse the repository at this point in the history
* fix: increase session token exp to 96h

* feat: match login expiry with queue session expiration
  • Loading branch information
paulpascal authored Nov 28, 2024
1 parent 9d73768 commit 846b8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import process from 'process';
import jwt from 'jsonwebtoken';
import ChtSession from './cht-session';

const LOGIN_EXPIRES_AFTER_MS = 2 * 24 * 60 * 60 * 1000;
const QUEUE_SESSION_EXPIRATION = '48h';
const LOGIN_EXPIRES_AFTER_MS = 4 * 24 * 60 * 60 * 1000;
const QUEUE_SESSION_EXPIRATION = '96h';
const { COOKIE_PRIVATE_KEY, WORKER_PRIVATE_KEY } = process.env;
const PRIVATE_KEY_SALT = '_'; // change to logout all users
const COOKIE_SIGNING_KEY = COOKIE_PRIVATE_KEY + PRIVATE_KEY_SALT;
Expand Down

0 comments on commit 846b8bf

Please sign in to comment.