feat(auth): renew sessions with 30-day idle and 90-day absolute limits
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
BEGIN;
|
||||
|
||||
-- Existing sessions keep their current idle deadline: expired sessions stay expired.
|
||||
-- Their original issuance time was not recorded, so the new absolute cap starts here.
|
||||
ALTER TABLE project_sessions
|
||||
ADD COLUMN created_at timestamptz NOT NULL DEFAULT now(),
|
||||
ADD COLUMN absolute_expires_at timestamptz NOT NULL DEFAULT (now() + interval '90 days');
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user