Get your API key

Lesson 4 of 5

Logins and private customer data

Supabase logins and RLS so each user sees only their own leads, a two-user test, India's DPDP basics in plain words, and backups.

8 min Log in to open
One step at a time, like flipping pages.

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

  1. 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:

    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:

  1. Move the data to Supabase, behind a login
  2. One user, one set of leads (for now)
  3. Prove it: Security Advisor and the two-user test
  4. Customer data and India's DPDP law
  5. Backups: plan for the bad day
  6. Recap