Implementing authentication in Next.js, especially Email+Password authentication and Oauth, can be challenging. No more hassle with user management. Stack is the most developer-friendly way to manage your users, and it's 100% open-source.
- Open-source User Auth & Management
- Integrate in minutes with no bullshit. For front- and backend.
- Stack Authentication: 💼 Support for Credential and OAuth(google,github) authentication.
- Authorization: 🔒 Easily manage public and protected routes within the
app directory
. - Email Verification: 📧 Verify user identities through email.
- Password Reset: 🔑 Streamline password resets by sending email password reset links.
- Lemonsqueezy Payment: 💳 Setup user subscriptions seamlessly with stripe.
- MongoDB Database: 🛢️ Utilize a MongoDB database set up.
- Clone this repository to your local machine.
- Copy
.env.loc
to.env.local
and fill in the Stack Auth credential. - Copy
.env.example
to.env
and fill in the required environment variables. - Run
pnpm install
to install dependencies. - Execute
pnpm dev
to start the development server and enjoy!
- [] Lemonsqueezy Integration
To contribute, fork the repository and create a feature branch. Test your changes, and if possible, open an issue for discussion before submitting a pull request. Follow project guidelines, and welcome feedback to ensure a smooth integration of your contributions. Your pull requests are warmly welcome.