Vibe Coder · Unit 12: Login and Data With Supabase · Lesson 3 of 6

Login

Add sign-up and sign-in so each person has an account. What Supabase handles for you and what you must test.

Read the short notes and pictures.Do everything inside a blue frame.

Accounts

Sign-in is the part of an app where mistakes hurt most, so you do not build it yourself. Supabase Auth creates accounts, checks passwords, sends confirmation emails and keeps people signed in. Your job is to choose how people sign in and to test every path.

A 3D scene of coloured blocks and cards. Supabase handles: sign-up, sign-in, passwords.
Sign-up, sign-in and passwords are handled for you.

What to ask Claude Code for

  1. Sign-up and sign-in pages

    Using Supabase Auth, styled with your design system.

  2. Protected pages

    Signed-out visitors are sent to sign in.

  3. Sign-out

    On every page.

  4. Clear messages

    For wrong passwords and unconfirmed emails.

A 3D scene of coloured blocks and cards. Ways to sign in: email link, password, Google.
Email link, password or an existing account.

What to test yourself

Sign up with a new email

Does the confirmation arrive and work?

Sign in and out

On a phone as well.

A wrong password

Is the message helpful without revealing too much?

A protected page while signed out

Are you sent to sign in?

ActivityBuild stepSign-in and saved data

Add sign-in to your app

Have Claude Code add sign-up, sign-in, sign-out and protected pages with Supabase Auth. Test all four cases yourself with two different accounts.

Done when

Keep both accounts. You need them to test the next lesson.

Keep these

  • Use Supabase Auth, never your own.
  • Protect pages that need an account.
  • Test every path with two accounts.