Discord OAuth for Next.js that doesn't suck https://npm.im/@mikandev/next-discord-auth
  • TypeScript 99.1%
  • JavaScript 0.9%
Find a file
2026-03-29 03:38:12 +09:00
.github/workflows fix: Node 24 Actions 2025-12-10 11:05:05 +09:00
src fix: Move route handler creator to server-actions 2026-03-29 03:38:12 +09:00
types fix: Move route handler creator to server-actions 2026-03-29 03:38:12 +09:00
.gitignore init 2025-05-27 02:19:30 +09:00
biome.json Change NPM config 2025-05-27 02:28:13 +09:00
build.js fix: update cookie SameSite attribute to 'lax' 2025-05-29 17:51:21 +09:00
build.ts fix: Proper type declaration 2025-05-27 13:49:10 +09:00
bun.lock v1.0.9: Client-side hooks 2026-03-29 03:18:17 +09:00
LICENSE Change NPM config 2025-05-27 02:28:13 +09:00
package.json fix: Move route handler creator to server-actions 2026-03-29 03:38:12 +09:00
README.md feat: Support for Next.js 16 2025-10-23 14:08:58 +09:00
tsconfig.json feat: build script 2025-05-27 13:39:25 +09:00

Next Discord Auth

JWT-based Discord authentication for Next.js that doesn't suck

  • Works with Next.js 16
  • No database required
  • Returns all user data from Discord
  • Fully server-side
  • Support for Server Actions and Route Handlers
  • Designed for easy migration from AuthJS

Installation

npm install @mikandev/next-discord-auth

Demo

You can see a live demo of this package in action at
https://next-discord-auth-demo.maamokun.workers.dev

Open Source

This package is open source and available under the WTFPL License.
Feel free to contribute or use it in your projects!

Learn More

Pitch Video

thumbnail