This project is a proof of concept (POC) to demonstrate that Better-Auth can be successfully integrated with Convex. It aims to validate the feasibility and provide a foundational example for future implementations.
- Better-Auth: A powerful authentication solution.
- Convex: A state management and backend framework.
- Next.js: A React framework for building server-side rendered (SSR) applications.
- Hono: A framework for building web servers.
-
Clone the repository:
git clone https://github.com/sheriffyusuf/betterauth-convex-nextjs.git cd betterauth-convex-nextjs
-
Install dependencies:
pnpm install
-
Set up environment variables:
- Add your Better-Auth and Convex credentials to
.env
.
- Add your Better-Auth and Convex credentials to
-
Run the project:
pnpm dev
This project is a proof of concept and may not include comprehensive error handling, scalability considerations, or production-grade features.
- Add robust error handling.
- Expand support for additional authentication flows.
- Optimize for scalability and performance.
Contributions are welcome!
If you'd like to improve this project or add new features:
-
Fork the repository.
-
Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -m "Add your feature or fix description"
-
Push to your branch:
git push origin feature/your-feature-name
-
Open a Pull Request.
Feel free to discuss your ideas by opening an issue or reaching out!
This project is licensed under the MIT License.