How do you integrate supabase auth with Instant? This repo gives you an example to do just that!
To run everything:
cd server
yarn
yarn dev
cd frontend
yarn
yarn dev
Now load the page on http://localhost:5173 and get playin :)
There's two files to understand:
- server/src/index.ts
- This creates an endpoint that generates instant tokens
- frontend/src/App.tsx
- This handles sync between supabase and Instant!