More screenshots
Works with the AI tools you already use
Repair JWT Verification & Key Rotation
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.
Secure checkout via Stripe
See it in action
You say
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.
Your agent does
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.
What you get
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
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
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 today
- One-time purchase, yours forever