Supabase
We use Supabase for authentication.
General
task supabase-startwill start a local Supabase server and generate.env.supabaseat the root. For more information, see Environment Variables.
OAuth
- It is important to set
<SUPABASE_URL>/auth/v1/callbackas redirect URI. So in dev, it should behttp://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 runningtask supabase-start.
Google OAuth
- Official guide
- To enable
Google OAuth,GOOGLE_CLIENT_ID=<VALUE> GOOGLE_CLIENT_SECRET=<VALUE>should be set when runningtask supabase-start.
Web (apps/web)
pnpm -F web devwill start the web app. (Seeapps/web/package.jsonfor how it consumes.env.supabase.)