More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 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.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security 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.

    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.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Requires an authoritative session store or cache for immediate JWT invalidation. Does not apply to persistent API keys unless specifically requested.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 months ago

    Software
    prismaNode.js

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Permissions are limited to the active local workspace. They are used to inspect user-supplied or local project files; create or modify bounded local fixes, tests, documentation, or review artifacts; run repository-supported local tests, checks, builds, or parsing commands. The skill package does not require bundled credentials, unrestricted external network access, or automatic production changes.

    Listed3 months ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    This skill identifies and remediates "stale authorization" vulnerabilities where JWTs, cookies, or WebSockets remain active after a user logs out or is suspended, ensuring access is terminated instantly across all services.

    The skill is compatible with Node.js, Python, Go, and Ruby backends and supports session storage layers like Redis, PostgreSQL, and DynamoDB for cross-service synchronization.

    Unlike basic prompts that suggest shorter TTLs, this skill implements systematic lineage tracking, refresh-token rotation, and deterministic security tests to handle complex race conditions.

    Yes, it supports granular control, allowing you to invalidate a specific compromised device session or rotate refresh-token families without disrupting the user's other active sessions.

    You receive the specialized AI agent logic for auditing and remediation, integration templates for popular auth middleware, and a suite of security tests to verify revocation performance.

    While it ensures immediate revocation, implementing authoritative checks for stateless tokens may introduce a minor latency dependency on your session store (e.g., Redis).

    New in APIs & Backend