Convex Auth
Convex Auth is a library for implementing authentication directly within your Convex backend. This allows you to authenticate users without needing an authentication service or even a hosting server. Your application can be a React web app served from a CDN or a React Native mobile app.
Get Started
To start a new project from scratch with Convex and Convex Auth, run:
npm create convex@latest
and choose React (Vite)
and Convex Auth
.
To add Convex Auth to an existing project, follow the full setup guide.
Overview
Convex Auth enables you to implement the following authentication methods:
- Magic Links & OTPs - send a link or code via email
- OAuth - sign in with Github / Google / Apple etc.
- Passwords - including password reset flow and optional email verification
The library doesn't come with UI components, but you can copy code from the docs and example repo to quickly build a UI in React.
Learn more in the Convex Auth docs.
Status
Convex Auth is currently a beta feature. If you have feedback or feature requests, let us know on Discord!
We're working on supporting authentication for Next.js server-side. See FAQ.