Chapter 6. Gita at the Door
Auth, access control, and the security flaws of vibe-coded apps

Chapter title card with the chapter's host character and the day of the countdown.
What you'll learn in this chapter
- Explain the difference between authentication (who are you?) and authorisation (what may you do?)
- Add real sign-in to your app without building it yourself
- Turn on row-level security for every table and write least-privilege policies
- Check your own app against the ten most common vibe-coding security flaws
- Run a pre-launch security ritual you can repeat before every release
Inside
- The evidence: why this chapter exists
- Two stories you should know
- Authentication: who are you?
- Authorisation: what may you do?
- Row-level security: a lock on every shelf
- The top ten flaws in vibe-coded apps
- The pre-launch security ritual
- Lab: lock the doors of your own QueueLess
- Prompts for securing your own app
- What you've learned
Checking your ticket at the door…