JWT-based Discord authentication for Next.js that doesn't suck
- Works with Next.js 15
- 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
npm install @mikandev/next-discord-auth
You can see a live demo of this package in action at
https://next-discord-auth-demo.maamokun.workers.dev
This package is open source and available under the WTFPL License.
Feel free to contribute or use it in your projects!