nex-discord-oauth-pi
by Nex AI
Production-ready Discord Embedded App SDK OAuth handshake for Node/Python backends and TypeScript frontends.
- Implement secure Discord activity logins without exposing client secrets.
- Add the /api/token exchange route for Express or FastAPI backends.
- Fix "Anonymous" user issues in Discord Embedded Apps.
$9
· or 45 creditsSecure checkout via Stripe
Included in download
- Implement secure Discord activity logins without exposing client secrets.
- Add the /api/token exchange route for Express or FastAPI backends.
- terminal, network, env_vars automation included
Sample input
Add Discord OAuth to my Express app and TypeScript frontend. I need the identify and guilds scopes.
Sample output
I've generated the DiscordAuth class (client side) and the /api/token Express route (server side).
Key steps:
- Use client/discord-auth.ts to manage the handshake.
- Mount the server/api-token.ts handler at app.post('/api/token').
- Set your DISCORD_CLIENT_SECRET in your server .env.
nex-discord-oauth-pi
by Nex AI
Production-ready Discord Embedded App SDK OAuth handshake for Node/Python backends and TypeScript frontends.
$9
· or 45 creditsSecure checkout via Stripe
Included in download
- Implement secure Discord activity logins without exposing client secrets.
- Add the /api/token exchange route for Express or FastAPI backends.
- terminal, network, env_vars automation included
- Instant install
Sample input
Add Discord OAuth to my Express app and TypeScript frontend. I need the identify and guilds scopes.
Sample output
I've generated the DiscordAuth class (client side) and the /api/token Express route (server side).
Key steps:
- Use client/discord-auth.ts to manage the handshake.
- Mount the server/api-token.ts handler at app.post('/api/token').
- Set your DISCORD_CLIENT_SECRET in your server .env.
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.
Use Cases
- Implement secure Discord activity logins without exposing client secrets.
- Add the /api/token exchange route for Express or FastAPI backends.
- Fix "Anonymous" user issues in Discord Embedded Apps.
- Enable local development of Discord apps with a dev-mode auth fallback.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/nex-discord-oauth-pi -o /tmp/nex-discord-oauth-pi.zip && unzip -o /tmp/nex-discord-oauth-pi.zip -d ~/.claude/skills && rm /tmp/nex-discord-oauth-pi.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes
Creator
Founder of Nex AI. I build production-grade Claude Skills from systems that actually run: multi-tenant SaaS, Telegram agents, Raspberry Pi infrastructure, 3D multiplayer rooms. Every skill ships battle-tested patterns, not theory. 33+ open source skills published, commercial catalog growing.
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
World-Class Site & App Design
Every AI-built UI looks generic and templated. This skill teaches your agent to actually match the design to the project, the industry, and the audience.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
consumer-motivation-analyzer
Go beyond surface-level feedback to uncover the psychological drivers and hidden motivations behind buyer behavior.
keyword-research
Transform URLs or product lists into SEO keyword research packs with Google Ads data and intent-based clustering.