Skip to content

fix: admin session TTL, single-read validate, index cleanup, indexed listing - #434

Merged
ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
0xSlink:fix/admin-session-429-432
Sep 26, 2026
Merged

ritaifeoluwa merged 1 commit into
SmartDropLabs:mainfrom
0xSlink:fix/admin-session-429-432

Conversation

@0xSlink

@0xSlink 0xSlink commented Sep 26, 2026

Copy link
Copy Markdown

Implements src/services/adminSession.js (Redis-backed admin session store) resolving the adminSession storage issues:

No existing behavior changed (new service module only); no tests run per instructions.

Closes #429
Closes #430
Closes #431
Closes #432

…listing

- createSession persists the session record WITH a TTL and expires the
  per-admin/global index keys so idle data evicts itself (SmartDropLabs#429)
- validateSession does a single read-modify-write; validation and refresh
  share one fetch instead of reading the session twice (SmartDropLabs#430)
- cleanupExpiredSessions removes expired ids from the per-admin session
  list and global index, not just marks them inactive (SmartDropLabs#431)
- getAllActiveSessions pages over the global active index instead of
  loading all admins then all per-admin lists then all records (SmartDropLabs#432)
@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@0xSlink Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants