Discord login
Sign in with Discord for Cloudflare Workers and Cloudflare Access.
14-day money back guarantee · ZIP, 24 KB
$ npm run bundle $ python3 deploy.py --set-secrets DEPLOY OK secret CLIENT_SECRET set workers.dev URL: https://discord-login.you.workers.dev
Add Sign in with Discord to anything you run on Cloudflare Workers.
It's a complete OIDC wrapper around Discord OAuth2, built on Hono and jose. It verifies the user, can limit logins to members of your Discord servers, flags admins by role, and returns a signed RS256 ID token. Standard discovery and JWKS endpoints mean it also works as a custom identity provider for Cloudflare Access.
Deploy with the included Python script or with wrangler. The README goes from a new Discord application to a verified login.
Built on Erisa A.'s open-source discord-oidc-worker (MIT), with attribution included. You're paying for the no-wrangler deploy script and the full setup guide.
- In the zip
README.md, deploy.py, kit.config.json.example, LICENSE, package.json, wrangler.toml, bin/, src/- You need
- Node 18+, Python 3, a Cloudflare account, a Discord app
- License
- MIT