By the end of this lesson your CRM will save leads in Supabase behind a login, each user will see only their own leads, you will have proved it with a two-user test, and you will know the basics of handling customer data under India's DPDP law.
You need: the CRM from lesson 3, a free Supabase account, and the lesson Save data properly done once · Time: 8 minutes
Until now, everything lived in one browser with fake data. Kavita's real CRM will hold hundreds of names, mobile numbers and budgets. In the wrong hands that list is a ready-made spam or fraud list.
You already know the tools, so this lesson only applies them:
- Supabase Auth for logins, and RLS (Row Level Security) so the database itself refuses to show a row to the wrong user. Explained in Save data properly and Logins and database rules.
- The publishable key may be in the app; the secret key never. See Keep secrets secret.
Why?Many AI-built apps leaked data because a table had no RLS or a policy allowed everyone. A CRM leak hurts twice: your client's customers get spam calls, and your client stops trusting you.
Log in free to read the rest of this lesson
Every lesson is free. A free account unlocks all of them and saves your progress.
Still to come in this lesson:
- Move the data to Supabase, behind a login
- One user, one set of leads (for now)
- Prove it: Security Advisor and the two-user test
- Customer data and India's DPDP law
- Backups: plan for the bad day
- Recap