More screenshots

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    Repair Authentication & Authorization Failures

    1

    Repair Authentication & Authorization Failures is a bounded ToolForge Labs workflow.

    $8.99

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Authentication & Authorization Failures

    Repair Authentication & Authorization Failures

    Example session with this skill installed

    Our Next.js/Node SaaS logs users in correctly, but after token refresh some API calls return 401 while an old admin permission can remain cached after a role downgrade. We also saw one stale session retain access until its cache expired. Repair the auth lifecycle without weakening security or changing the intended role policy.

    • Read your context and instructions
    • Compiled the repair authentication
    • Generated the UI component

    The likely defect is not one login bug but a contract split between token/session freshness and authorization freshness. I would trace identity generation from login through refresh, middleware, permission lookup, tenant scope, caches, and logout/revocation. The repair should establish one authoritative session/token generation, invalidate or version cached authorization when roles change, bind authorization to the current tenant/user identity, and make refresh/revocation transitions atomic from the application perspective. Focused tests should cover refresh while requests are in flight, role downgrade during an active session, logout followed by replay, stale cache entries, wrong-tenant identity, expired credentials, and concurrent tabs. I would preserve existing security policy and never “fix” this by extending token lifetime, skipping verification, or broadening permissions. Repository edits/tests would only be claimed if actually performed.

    repair-authentication-authorization-fail.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

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

    What you get

    Fix token refresh and revocation failures in OIDC/OAuth2 flows.Enforce tenant boundaries to prevent cross-account data access.Repair broken role-base access control (RBAC) in middleware.Generate security tests for session expiry and concurrent login edge cases.

    About this skill

    Repair Authentication & Authorization Failures is a bounded ToolForge Labs workflow. Diagnose and repair authentication and authorization failures across login, session/token validation, identity propagation, permission checks, tenant boundaries, logout/revocation, retries, and error handling. Works from repositories or partial logs/configuration. Produces bounded repair patterns and deterministic tests while preserving existing security policy and avoiding invented execution claims. It works from a full repository or partial supplied evidence. The skill separates verified facts from assumptions, preserves existing product/security policy, avoids invented execution claims, and returns concrete repair or review steps with deterministic validation or explicit remaining gaps.

    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 20 days ago

    • Passed all security checks, Safe to install

    Listed20 days ago

    What's inside

    Frequently Asked Questions