feat(sessions): implement user session management with session tracking and revocation

- Introduced new database schema for user sessions and session events.
- Implemented session management page with filtering, sorting, and revocation capabilities.
- Added backend services for creating, revoking, and expiring user sessions.
- Implemented session cookie handling and security measures.
- Created tests for session management functionalities and security features.
This commit is contained in:
KodekaTeam committed 2026-09-11 13:34:01 +07:00
1 parent b731194014
commit 87fdbb493b
33 files changed
+2878 -1296

No files matched your search

+3 -3
View File
@@ -29,9 +29,9 @@ NODE_ENV=development
# Database (PostgreSQL)
DATABASE_URL="postgresql://doktainer:doktainerdb@localhost:5432/doktainer?schema=public"
# JWT settings
JWT_SECRET=dev-super-secret-jwt-key-change-in-production-32chars
JWT_EXPIRES_IN=7d
# Absolute lifetime for database-backed login sessions. User settings control
# the shorter sliding inactivity timeout.
SESSION_ABSOLUTE_TIMEOUT_HOURS=168
# /* -------------------------- Reverse proxy / rate limiting ------------------------- */