More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair OAuth Refresh Races

    1

    Repair concurrent OAuth refresh races that invalidate credentials, overwrite newer tokens, or force users to reconnect.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair OAuth Refresh Races

    Repair OAuth Refresh Races

    Example session with this skill installed

    My background workers keep hitting invalid_grant errors when they all try to refresh the same Google OAuth token at once. Fix the race condition.

    • Read your context and instructions
    • Compiled the repair oauth refresh

    I have implemented a single-flight refresh mechanism using a Redis lock. Added versioned token updates to the database to prevent stale overwrites. Verified the fix with a new concurrency test suite simulating 10 simultaneous refresh attempts.

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

    About this skill

    Repair apps where concurrent OAuth refreshes invalidate credentials, overwrite newer tokens, or force users to reconnect.

    This skill traces token expiry, rotation, storage, retries, and multi-instance races. It adds single-flight refresh, atomic token replacement, version checks, safe recovery, and concurrency tests.

    • Stop duplicate refresh requests
    • Preserve rotated tokens
    • Prevent stale overwrites
    • Avoid reconnect loops

    Ideal for SaaS integrations, APIs, and background sync.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    • Requires access to token storage and refresh logic code. - Multi-region coordination may require a shared data store like Redis. - Cannot fix revoked tokens at the provider.

    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

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Permissions are limited to the active local workspace and are used to inspect user-supplied or local workspace 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

    It implements single-flight logic, atomic database updates, or distributed locks to ensure only one refresh request is made at a time.

    Yes, it identifies if the provider uses rotating refresh tokens and ensures older tokens never overwrite newer ones during race conditions.

    The skill is architecture-agnostic and works with Node.js, Python, Ruby, or any framework using common databases like PostgreSQL, Redis, or MongoDB.