Developers

Login

Supabase

We use Supabase for authentication.

General

  • task supabase-start will start a local Supabase server and generate .env.supabase at the root. For more information, see Environment Variables.

OAuth

  • It is important to set <SUPABASE_URL>/auth/v1/callback as redirect URI. So in dev, it should be http://127.0.0.1:5432/auth/v1/callback.

Github OAuth

  • Official guide
  • To enable Github OAuth, GITHUB_CLIENT_ID=<VALUE> GITHUB_CLIENT_SECRET=<VALUE> should be set when running task supabase-start.

Google OAuth

  • Official guide
  • To enable Google OAuth, GOOGLE_CLIENT_ID=<VALUE> GOOGLE_CLIENT_SECRET=<VALUE> should be set when running task supabase-start.

Web (apps/web)

  • pnpm -F web dev will start the web app. (See apps/web/package.json for how it consumes .env.supabase.)