More screenshots

    Works with the AI tools you already use

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

    Repair JWT Verification & Key Rotation

    1

    Repair JWT verification and key-rotation bugs involving algorithm confusion, kid lookup, JWKS caching, issuer/audience validation, stale keys, refresh races, and fail-open error paths.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    Repair JWT Verification & Key Rotation

    Repair JWT Verification & Key Rotation

    Example session with this skill installed

    Our API caches JWKS for an hour. When a new kid appears, many requests refresh at once; if refresh fails, one path retries verification with any cached RSA key. Repair locally with a fake JWKS provider and preserve issuer/audience and clock-skew policy.

    • Read your context and instructions
    • Compiled the repair jwt verification

    Unknown-key handling can degrade into key guessing and refreshes are uncoordinated. The repair keeps explicit algorithm/kid binding, coalesces refresh by keyset generation, never verifies with an unrelated key, and tests rotation, stale cache, refresh failure, concurrent unknown-kid requests, and existing claim checks.

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

    What you get

    Resolve race conditions in JWKS cache updates and key selection logic.Standardize token parsing and validation across inconsistent trust boundaries.Implement deterministic local testing for key rollover and expiry scenarios.Add redacted observability for auth failures without leaking PII or secrets.

    About this skill

    The problem

    JWT verification logic often suffers from race conditions during key rotation, inconsistent trust boundaries, or JWKS caching bugs that cause intermittent authorization failures. Developers struggle to fix these issues without accidentally weakening security policies or leaking sensitive data in logs.

    What it does

    • Identifies inconsistencies in token parsing, key selection, and JWKS refresh logic across the codebase.
    • Patches concurrent refresh bugs and ensures state ownership for keys and caches is deterministic.
    • Strictly enforces existing issuer, audience, and clock-skew policies while repairing the underlying implementation.
    • Generates deterministic local fixtures and loopback endpoints for testing key rollover scenarios.
    • Implements redacted observability to track verification failures without logging secrets or customer data.

    Why this beats prompting it yourself

    General prompts often suggest insecure workarounds like widening clock skew or adding arbitrary sleeps to handle async key loading. This skill applies a formal transaction-based approach to state transitions, ensuring that retries and cleanups are bound to the specific generation that triggered them without compromising the security posture.

    Use cases

    • Fixing race conditions where a JWKS refresh fails to update the local cache before a new token arrives.
    • Standardizing JWT validation across multiple microservices using different libraries.
    • Implementing robust error handling for expired or rotated signing keys without exposing internal stack traces.
    • Creating regression tests for edge cases like "kid" header mismatches or malformed JWKS responses.

    Known limitations

    Does not contact production services or read live secrets. Scope is limited to repository-level repairs and local testing fixtures.

    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 1 month ago

    • Passed all security checks, Safe to install

    Listed1 month ago

    What's inside

    Frequently Asked Questions