Files

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

  1. Create a new Jazz project, and use this example as a template.
npx create-jazz-app@latest multiauth-app --example multiauth
  1. Navigate to the new project.
cd multiauth-app
  1. Rename .env.example to .env
mv .env.example .env
  1. Update VITE_CLERK_PUBLISHABLE_KEY with your Publishable Key from Clerk.

  2. Run the development server

npm run dev

Using the monorepo

This requires pnpm to be installed; see https://pnpm.io/installation.

  1. Clone the jazz repository.
git clone https://github.com/garden-co/jazz.git
  1. Install dependencies.
cd jazz
pnpm install
  1. Navigate to the example and start the development server.
cd examples/multiauth
  1. Rename .env.example to .env
mv .env.example .env
  1. Update VITE_CLERK_PUBLISHABLE_KEY with your Publishable Key from Clerk.

  2. Run the development server

pnpm dev

The example should be running at http://localhost:5173 by default.