Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Repair Session Revocation Gaps

    1

    Repair session revocation gaps that leave JWTs, refresh tokens, cookies, WebSockets, or cached authorization usable after logout or suspension.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Repair Session Revocation Gaps

    Repair Session Revocation Gaps

    Example session with this skill installed

    Our JWTs stay valid for 15 minutes after a user logs out. Repair this so logout is immediate across our Express API and the Socket.io server.

    • Read your context and instructions
    • Compiled the repair session revocation

    Implemented a Redis-backed JTI denylist and a custom middleware for Express. Added a session-identity check to the Socket.io connection handler. Verified that logout now terminates the WebSocket and rejects subsequent API requests within 50ms.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Invalidate all user sessions globally after a password change event.Terminate authenticated WebSocket connections immediately upon account suspension.Prevent refresh token reuse through family-based rotation and revocation.Synchronize session status between an API gateway and downstream workers.

    About this skill

    The problem

    Existing session tokens or cookies often remain valid even after a user logs out, changes their password, or is suspended. Standard JWT implementations and distributed systems frequently suffer from a "stale authorization" gap where access persists until the token naturally expires.

    What it does

    • Identifies surfaces where credentials outlive revocation events across cookies, JWTs, and WebSockets.
    • Implements stable session identities and monotonic authentication generations to track session lineage.
    • Secures refresh-token families to prevent compromised credentials from spawning new access tokens.
    • Synchronizes revocation state across API gateways, background workers, and downstream services.
    • Adds deterministic security tests to verify immediate access termination and cache invalidation.

    Frameworks & tools

    Works with Node.js, Python, Go, and Ruby authentication stacks. Supports Redis, Memcached, PostgreSQL, and DynamoDB for session storage. Integrates with OIDC, OAuth2, and custom JWT middleware.

    Why this beats prompting it yourself

    Manual prompts often suggest naive solutions like shortening token lifetimes, which disrupts UX without fixing the underlying propagation issue. This skill systematically audits the entire lifecycle, including edge cases like race conditions during password changes and long-lived WebSocket connections that generic prompts miss.

    Use cases

    • Revoking all active sessions immediately after a user resets a compromised password.
    • Stopping background jobs and internal service calls for suspended accounts.
    • Invalidating specific device sessions while keeping other user sessions active.
    • Preventing token-reuse attacks by implementing refresh-token rotation and family tracking.

    Known limitations

    Immediate revocation for stateless JWTs requires an authoritative check or cache, which may introduce latency or dependency on session store availability.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 29 days ago

    • Passed all security checks, Safe to install

    Listed29 days ago
    Updated22 days ago

    Frequently Asked Questions