Module 07

Auth & Security

Proving who someone is, then limiting what they can touch.

7 min total4 min read3 min demos

Authentication asks who you are. Permissions ask what you may touch. A login page with no row-level rules is a front door with no interior locks.

Row-level rules in the database are enforced whether the screen remembers to check or not. That is the real wall — not the login page.

Visual walkthrough

Who gets through the gate

Who is knocking

no session

The notes table

0 of 4 readable

Maya••••• ••••• ••••••••
Maya••••• •••• •••••
Sam••••• •••••• ••••••
Sam••••• ••••••• •••••

No session, no rows. The gate is the database, not the login page.

Concepts here

Words you will hear

Session
The sticker on the back of your badge — it proves you already checked in and expires so a lost badge isn't forever.
Row-level rule
A database rule that filters each user to only their own rows, enforced even when the screen forgets.
Secret
A key stored on the server that visitors can never read, even by inspecting the page.

Interactive demo

Pick a sign-in method

Sign-in method
MMayasigned in
  • Dentist Tuesday 9am
  • Pay the gas bill
  • Call mum back
SSamsigned in
  • Renew passport
  • Gift idea: film camera
  • Salary review notes

Row-level rules

The database decides which rows each signed-in person may read.

table · notes6 rows
idownerbodyvisible to
n_01mayaDentist Tuesday 9amMaya only
n_02samRenew passportSam only
n_03mayaPay the gas billMaya only
n_04samGift idea: film cameraSam only
n_05mayaCall mum backMaya only
n_06samSalary review notesSam only

What makes this work

The pieces underneath

Try it

20 min

Add sign-in to a simple notes app so each person sees only their own notes. Then sign in as a second account and confirm the first user's notes are completely invisible.

  • Ask explicitly for row-level rules, not just a login page.
  • Never store roles or admin flags where a browser can change them.

Free account

Save your progress and earn your certificate

Keep reading as long as you like — everything here stays open. Add your email and we will track your completion, sync it across devices, and issue your Vibe Coding micro-credential when you finish.

Just enter your email. We will send you a link — no password needed.

Keep going

Tools that go deeper

Conversion & Engagement

OnScreenGames.com

See how interactive widgets drive real-world results

See how interactive screens capture attention in venues, at events, and on the web.

Explore OnScreenGames
Before You Build

Liberating Facilitator

Clarify your idea before a single line of code gets written

Sharpen your idea and define your users before you build.

Try Liberating Facilitator
Ready to Build

Xponent21

Have it built for you

We scope, build, and launch AI-powered applications for businesses of every size.

Start a conversation