Multi-auth example with Jazz and React
This example demonstrates using Jazz with multiple authentication methods; in this case, Clerk and passphrases are able to be used.
Getting started
To run this example, you may either:
- Clone the Jazz monorepo and run this example from within.
- Create a new Jazz project using this example as a template, and run that new project.
Using this example as a template
- Create a new Jazz project, and use this example as a template.
npx create-jazz-app@latest multiauth-app --example multiauth
- Navigate to the new project.
cd multiauth-app
- Rename .env.example to .env
mv .env.example .env
-
Update
VITE_CLERK_PUBLISHABLE_KEYwith your Publishable Key from Clerk. -
Run the development server
npm run dev
Using the monorepo
This requires pnpm to be installed; see https://pnpm.io/installation.
- Clone the
jazzrepository.
git clone https://github.com/garden-co/jazz.git
- Install dependencies.
cd jazz
pnpm install
- Navigate to the example and start the development server.
cd examples/multiauth
- Rename .env.example to .env
mv .env.example .env
-
Update
VITE_CLERK_PUBLISHABLE_KEYwith your Publishable Key from Clerk. -
Run the development server
pnpm dev
The example should be running at http://localhost:5173 by default.