Consolidate session management into KSessionService

RefactorSecurityService
Shipped
October 24, 2025 at 7:51 PM UTC
Author
snadjafinia
Commit
78138d8

- Deleted duplicate KTokenSessionService - Enhanced KSessionService with: * getSessionTTL() - get Redis key TTL * getSessionInfo() - get session data + TTL for monitoring * extendSession() - manually extend session expiration * Sliding expiration in getSession() - auto-refresh TTL on access - Updated SecurityController endpoints to use unified KSessionService: * /api/security/session/info * /api/security/session/extend - Removed KTokenSessionService imports and autowiring This fixes the duplication where both services were using the same Redis key prefix (***) but storing different data formats, causing conflicts.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing