Use Better Auth with Convex 🔥
Important
The Convex Better Auth component is in early alpha development.
If your use case isn't supported, a plugin doesn't work, you hit a bug, etc, please open a GitHub issue or reach out on Discord.
Full documentation and guides: 👉 convex-better-auth.netlify.app
Note: The examples are not starters - the dependencies are set up to work locally within this repo. They can be adapted for standalone use, but are intentionally not set up for it.
Note: Examples on the main
branch may not match your version of the Better
Auth component. Use the latest
branch for the latest stable release and the
alpha
branch for the latest alpha release.
- Clone or fork the repo
- Install root dependencies
npm install
- Change to one of the example directories and install dependencies
cd examples/<example-name>
npm install
- If you haven't run this example before, initialize the database
npx convex dev --once
- Run the example
npm run dev
If you're making changes to the component, open a separate terminal and run the build watch task
npm run build:watch