Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Nex Discord Oauth pi

    6

    Production-ready Discord Embedded App SDK OAuth handshake for Node/Python backends and TypeScript frontends.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    3 usesSecurity scanned
    nex-discord-oauth-pi

    nex-discord-oauth-pi

    Example session with this skill installed

    Add Discord OAuth to my Express app and TypeScript frontend. I need the identify and guilds scopes.

    • Read your context and instructions
    • Compiled the nex-discord-oauth-pi

    I've generated the DiscordAuth class (client side) and the /api/token Express route (server side).

    Key steps

    1. Use client/discord-auth.ts to manage the handshake.
    2. Mount the server/api-token.ts handler at app.post('/api/token').
    3. Set your DISCORD_CLIENT_SECRET in your server .env.

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

    About this skill

    What it does

    This skill provides a battle-tested, drop-in OAuth2 implementation for Discord Embedded App SDK activities. It automates the complex three-step handshake required to get an authenticated user session inside a Discord iframe: authorization, server-side token exchange, and SDK authentication.

    Why use this skill

    Implementing Discord OAuth manually is error-prone. Common pitfalls include sending JSON instead of form-encoded data to Discord's token endpoint or accidentally exposing client secrets in the frontend. This skill provides field-verified code that keeps secrets on the server, handles the specific Content-Type requirements of Discord's API, and includes a "Dev Mode" fallback so you can build your UI in a browser without needing to launch Discord every time.

    Supported tools

    • Frontend: TypeScript/JavaScript with Discord Embedded App SDK
    • Backend: Node.js (Express/Fastify) or Python (FastAPI)
    • Bundlers: Optimized for Vite (VITE_ prefixing) but adaptable to others

    The Output

    You receive a dedicated DiscordAuth client class and a corresponding server-side route handler. The client class manages the internal SDK state, while the server route handles the secure communication with Discord. It also includes an .env.example with the exact keys required to make the handshake work.

    Built by Nex AI. More skills and info at nex-ai.be and slopsome.com.

    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.

    • Handshake only: does not include UI components.
    • Specific to Discord iFrame Activities; not for standalone web apps.
    • OAuth redirect URL must be manually configured in Discord portal.

    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

    3 uses

    Times used to date

    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

    Accounts
    Discord

    Permissions

    Terminal / Shell
    Network Access
    Environment Variables

    Allowed Hosts

    cdn.discordapp.com
    discord.com
    Listed5 months ago
    Updated3 months ago

    What's inside

    Frequently Asked Questions

    This skill automates the complex OAuth2 handshake between the Discord Embedded App SDK and your backend, solving common issues like 'invalid_client' errors, improper content-type headers, and secure token exchange.

    The package includes ready-to-use boilerplate for TypeScript frontends and a choice of Node.js (Express/Fastify) or Python (FastAPI) for the backend logic.

    Yes, it includes a built-in 'Dev Mode' that mocks the Discord environment, allowing you to build and test your UI in a standard web browser without needing to launch the Discord client.

    You receive a dedicated DiscordAuth client class, secure server-side route handlers, an .env template for configuration, and a detailed implementation guide to get your handshake running in minutes.

    Security is a priority; the skill is architected to ensure all Client Secrets remain strictly on the server side, preventing accidental exposure in frontend code.

    New in APIs & Backend