Skip to content

get-convex/template-react-vite-convexauth-shadcn

Repository files navigation

Convex + React + Convex Auth

This is a template for using Convex with React and Convex Auth.

Setting up

npm create convex@latest -- -t react-vite-convexauth-shadcn

Navigate to the new directory and run:

npm run dev

It'll walk you through the auth environment variables setup.

The app

The app is a basic multi-user chat. Walk through of the source code:

Configuring other authentication methods

To configure different authentication methods, see Configuration in the Convex Auth docs.