# Next Discord Auth

<p align="center">
 <img src="https://cdn.mikn.dev/branding/mikan-vtube.svg" width="100">
</p>

<p align="center">JWT-based Discord authentication for Next.js that doesn't suck</p>

- 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

```bash
npm install @mikandev/next-discord-auth
```

## Demo
You can see a live demo of this package in action at <br>
[https://next-discord-auth-demo.maamokun.workers.dev](https://next-discord-auth-demo.maamokun.workers.dev)

## Open Source
This package is open source and available under the [WTFPL License](https://wtfpl.net/).<br>
Feel free to [contribute](https://github.com/mikndotdev/next-discord-auth) or use it in your projects!

## Learn More
- [Documentation](https://docs.mikn.dev/solutions/developers/next-discord-auth)
- [Product Page](https://mikn.dev/solutions/developers/next-discord-auth)

## Pitch Video
[![thumbnail](https://img.youtube.com/vi/ZBc05iHwoPA/maxresdefault.jpg)](https://www.youtube.com/watch?v=ZBc05iHwoPA)