You fixed sign-in. Now the API has to believe the token.
Your users authenticate with Supabase. Your backend still needs to read that access token, reject bad requests, and keep user rows in step. On a new project, that work eats the first day: secret config, validation, a protected handler or two, something to test with.
FastAPI Supabase Starter hands you that plumbing so you extend routers instead of reinventing guards.
Validate once. Protect every route.
What you get
- Protected handlers that expect a Supabase token. Incoming requests with a valid JWT can reach user routes. Bad or missing tokens do not.
- User create and profile fetch already sketched. Documented endpoints let you create a user row from the token payload and read back the signed-in user.
- A local database to start. SQLite runs out of the box, with room to point at another database when you are ready.
- Interactive API docs for smoke tests. Open the built-in docs URL on your machine and exercise routes without writing a separate client first.
- Cross-origin requests enabled. Browser frontends on another origin can call the API while you wire the UI.
- Free and open source. MIT licensed. Bring your own Supabase project and credentials.
Your first morning after cloning
For example, you paste project credentials into the environment template, install dependencies the way the repository describes, and start the dev server. You sign in through Supabase the way you already do, copy the access token, and call the documented user routes with that token in the header. The protected path responds. You add your first real business route beside the sample user handlers.






