Skip to content

Services

Supabase

Give your app a database, user accounts, and a place to store uploaded files such as profile photos.

A reading list becomes more useful when people can close the app and find their books again tomorrow. With Supabase, each book can be a row in a database table. Signing in lets the app associate those rows with the person who saved them.

Start with two test accounts and a different book in each list. Set rules for who can read each row, then sign in as each reader. Each should see only the books they saved.

When to use it
When your product needs to remember things between visits, or needs user accounts.
When to skip it
If your product must stay online on the free plan. Free projects pause after a week with little activity, so move to a paid plan before you rely on it.
What it costs
Free plan with up to 2 active projects and a 500 MB database each. Paid plans start at $25 a month.

Save data with Supabase

Give your product a database so it remembers things between visits. Supabase keeps your data in tables, and access rules decide who can read and change each row.

You’ll need

  • A website or app with PLAN.md in its folder.
  • Your AI tool, set up and working in that folder.
  • Sign-in in your product, if each person should see only their own data. The Sign-in concept compares the options.
  • Supabase account.

Your part

  • Create the Supabase project, or reuse the one you made for sign-in.
  • Read what each access rule does, then run the rules in Supabase.
  • Test with two accounts to make sure people can’t see each other’s data.

Copy the prompt for these steps

All 5 steps, in one prompt
I’m following “Save data with Supabase” on BuildLadder.
What the guide says I’ll end up with: Your product saves and loads real data in Supabase. Each person can only reach the data they’re allowed to.
This comes from https://buildladder.com/tools/supabase#databases. If you can open web pages, read https://buildladder.com/tools/supabase.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

How to work with me:
- Go through the steps below in order, one at a time.
- Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money.
- When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done.
- The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you.
- Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings.
- After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one.
- Use plain words. I may never have coded before.

## Step 1 of 5: Create or open your Supabase project

This step is mine to do. Walk me through it, one action at a time:
- If you already made a Supabase project for this product, for its database or its sign-in, open it at supabase.com/dashboard and skip the rest of this list.
- Otherwise, open supabase.com/dashboard and sign in or create an account. Choose the option that creates a new project.
- In the form, choose the organization that will hold it, and enter a name, such as your product’s name.
- Set a strong database password and save it in your password manager.
- If it asks for a region, pick the one closest to the people who will use your product.
- If the form offers access through Supabase’s Data API, keep it on.
- Create the project, then wait until its dashboard is ready.
- If you use Clerk for sign-in, do “Connect Clerk to Supabase” now that the project exists.

It worked when: You can see your Supabase project’s dashboard, the page where you manage it.

Before we move on, check with me:
- Is your database password saved somewhere safe?

If something goes wrong:
- It says you’ve reached the limit of free projects. The free plan allows 2 active projects. Pause one you don’t use, or use a project you already have.
- Your project is paused. Open it in the dashboard and unpause it.

## Step 2 of 5: Design your first table

Read PLAN.md in this folder. It has my plan and the tools I chose. I’m using Supabase for my database.

Help me design the first table, or the first few, for the must-have features only. Check Supabase’s current official docs first. Don’t rely on memory.

Explain in plain words:
- what each table holds, with an example row
- which columns it has, and what each one means
- which rows belong to one person, so we can keep them private

Wait for my yes. Then write the SQL that creates the tables in a file in this product, like a migration file. In the same file:
- turn on Row Level Security for every table
- add rules so signed-in people can only read and change their own rows, unless I said otherwise
- set only the grants each role needs, following Supabase’s Row Level Security guide
- give each rule a plain-English comment

Don’t run anything on my Supabase project. Tell me which file to copy, and I’ll run it myself.

It worked when: Your AI tool has described your tables in plain words and written one SQL file that creates them with access rules.

Before we move on, check with me:
- Does each table match something in your PLAN.md?
- Can you say in your own words who can see each table’s rows?

If something goes wrong:
- The plan has more than you expected. Say: “Keep only what the must-have features need. We can add more later.”
- You don’t know what should be private. Think about who should see each thing. Notes might be private, while a shop’s products are public. Tell your AI tool in plain words.

## Step 3 of 5: Set who can read and write

This step is mine to do. Walk me through it, one action at a time:
- Read the plain-English comments in the SQL file. If any rule surprises you, ask your AI tool to change it first.
- In your Supabase dashboard, open SQL Editor. Paste the whole file, then click Run.
- Open Table Editor and check that your new tables are there.
- For each table, check that Row Level Security is on and the rules match what you agreed with your AI tool.
- Open Security Advisor. If it lists a problem, copy the warning to your AI tool and ask for the smallest fix.
- Each time you add a table later, check Security Advisor again.

It worked when: Every table shows Row Level Security turned on, with rules you understand.

Before we move on, check with me:
- Does Security Advisor show no errors for your tables?

If something goes wrong:
- Running the SQL shows an error. Copy the whole error message to your AI tool. Ask: “What does this mean, and how do I fix the file?” Then run the fixed file.
- A table says Row Level Security is off. Anyone with your public key could read or change it. Ask your AI tool for SQL that turns it on with the right rules, then run it.

## Step 4 of 5: Save and load data in your app

Read PLAN.md again. My tables are now in Supabase, with Row Level Security turned on.

Connect my app to these tables. Check Supabase’s current docs for my kind of product first. Then:
1. If my app isn’t connected to Supabase yet, add the names for the project URL and publishable key to .env, with empty values. Make sure Git ignores .env, and tell me where to find each value. I’ll paste them in myself.
2. Use only the publishable key in the app. Never put the secret key in code that runs in a browser or on a phone.
3. Let people add, see, change and delete their own items, for the first must-have feature only.
4. Show a clear message if saving or loading fails, and a friendly message when nothing is saved yet.

Tell me what you’ll install or change before you do it. Keep everything that already works. When you’re done, give me a short list of things to try.

It worked when: Your product saves something, and it’s still there after you refresh the page or reopen the app.

Before we move on, check with me:
- In Table Editor, can you see the row you added?

If something goes wrong:
- Nothing saves, or the list is always empty. Row Level Security may be blocking it. Say: “Saving doesn’t work. Check my rules and grants against Supabase’s docs and fix the smallest thing.”
- It says “permission denied”. The table may be missing a grant. Copy the error to your AI tool and ask it to check the grants in Supabase’s Row Level Security guide.

## Step 5 of 5: Test with two accounts

This step is mine to do. Walk me through it, one action at a time:
- Sign in to your product as yourself and add two or three items.
- Sign out. Sign up as a second test person, using another email address you own.
- As the second person, check that the first person’s items don’t appear. Add one item of your own.
- Sign out and sign back in as yourself. Check that you only see your own items.
- Open Table Editor. Check that each row’s owner matches the account that added it.
- Write down anything that looked wrong, and fix it before real people use your product.

It worked when: Each test account sees only its own items.

Before we move on, check with me:
- Did your own items come back after you signed in again?

If something goes wrong:
- The second person can see the first person’s items. Stop and fix this first. Say: “My second test account can see the first account’s data. Check my access rules and code, and fix them.”
- The second account’s confirmation email doesn’t arrive. Add your second address to your Supabase team, or do “Send real emails with your own email service”.

The steps

  • Steps marked AI tool are done by your AI tool when you paste the prompt. The rest are yours.
  • Save a version after every step that works.
  • If a screen looks different from a step, ask your AI tool where the setting moved.
  • Never paste a password or secret key into the chat.
  1. A project and a plan for your tables

    Create or open your Supabase project

    You

    A Supabase project holds your database and your user accounts. Use one project for both, so your accounts and data stay together.

    1. If you already made a Supabase project for this product, for its database or its sign-in, open it at supabase.com/dashboard and skip the rest of this list.
    2. Otherwise, open supabase.com/dashboard and sign in or create an account. Choose the option that creates a new project.
    3. In the form, choose the organization that will hold it, and enter a name, such as your product’s name.
    4. Set a strong database password and save it in your password manager.
    5. If it asks for a region, pick the one closest to the people who will use your product.
    6. If the form offers access through Supabase’s Data API, keep it on.
    7. Create the project, then wait until its dashboard is ready.
    8. If you use Clerk for sign-in, do “Connect Clerk to Supabase” now that the project exists.

    It worked when: You can see your Supabase project’s dashboard, the page where you manage it.

    Check this step
    • Is your database password saved somewhere safe?
    It says you’ve reached the limit of free projects.

    The free plan allows 2 active projects. Pause one you don’t use, or use a project you already have.

    Your project is paused.

    Open it in the dashboard and unpause it.

  2. Design your first table

    AI tool

    A table holds one kind of thing, like notes or orders, in rows and columns. Your AI tool reads your plan and suggests the simplest tables.

    It worked when: Your AI tool has described your tables in plain words and written one SQL file that creates them with access rules.

    Check this step
    • Does each table match something in your PLAN.md?
    • Can you say in your own words who can see each table’s rows?
    The plan has more than you expected.

    Say: “Keep only what the must-have features need. We can add more later.”

    You don’t know what should be private.

    Think about who should see each thing. Notes might be private, while a shop’s products are public. Tell your AI tool in plain words.

  3. Protected tables your product can use

    Set who can read and write

    You

    Row Level Security decides who can see or change each row. You run the SQL your AI tool wrote, then check that every table is protected.

    1. Read the plain-English comments in the SQL file. If any rule surprises you, ask your AI tool to change it first.
    2. In your Supabase dashboard, open SQL Editor. Paste the whole file, then click Run.
    3. Open Table Editor and check that your new tables are there.
    4. For each table, check that Row Level Security is on and the rules match what you agreed with your AI tool.
    5. Open Security Advisor. If it lists a problem, copy the warning to your AI tool and ask for the smallest fix.
    6. Each time you add a table later, check Security Advisor again.

    It worked when: Every table shows Row Level Security turned on, with rules you understand.

    Check this step
    • Does Security Advisor show no errors for your tables?
    Running the SQL shows an error.

    Copy the whole error message to your AI tool. Ask: “What does this mean, and how do I fix the file?” Then run the fixed file.

    A table says Row Level Security is off.

    Anyone with your public key could read or change it. Ask your AI tool for SQL that turns it on with the right rules, then run it.

  4. Save and load data in your app

    AI tool

    Your AI tool connects your product to the new tables. Things people add get saved in Supabase and show up again when they come back.

    It worked when: Your product saves something, and it’s still there after you refresh the page or reopen the app.

    Check this step
    • In Table Editor, can you see the row you added?
    Nothing saves, or the list is always empty.

    Row Level Security may be blocking it. Say: “Saving doesn’t work. Check my rules and grants against Supabase’s docs and fix the smallest thing.”

    It says “permission denied”.

    The table may be missing a grant. Copy the error to your AI tool and ask it to check the grants in Supabase’s Row Level Security guide.

  5. Test with two accounts

    You

    Two test accounts prove that your access rules keep each person’s data private.

    1. Sign in to your product as yourself and add two or three items.
    2. Sign out. Sign up as a second test person, using another email address you own.
    3. As the second person, check that the first person’s items don’t appear. Add one item of your own.
    4. Sign out and sign back in as yourself. Check that you only see your own items.
    5. Open Table Editor. Check that each row’s owner matches the account that added it.
    6. Write down anything that looked wrong, and fix it before real people use your product.

    It worked when: Each test account sees only its own items.

    Check this step
    • Did your own items come back after you signed in again?
    The second person can see the first person’s items.

    Stop and fix this first. Say: “My second test account can see the first account’s data. Check my access rules and code, and fix them.”

    The second account’s confirmation email doesn’t arrive.

    Add your second address to your Supabase team, or do “Send real emails with your own email service”.

Compare Supabase with the other options

Add sign-in with Supabase

Let people create an account and sign in with their email or Google. Supabase keeps the accounts, and your AI tool builds the pages in your product.

You’ll need

  • A website or app with PLAN.md in its folder.
  • Your AI tool, set up and working in that folder.
  • Supabase account.
  • Google Cloud account. It uses your Google account.

Your part

  • Create the Supabase project and paste its keys into your .env file.
  • Make Google sign-in keys in Google Cloud and paste them into Supabase.
  • Sign up and sign in to check that it all works.

Copy the prompt for these steps

All 8 steps, in one prompt
I’m following “Add sign-in with Supabase” on BuildLadder.
What the guide says I’ll end up with: People can sign up, sign in with email or Google, and sign out. One page in your product is only for signed-in people.
This comes from https://buildladder.com/tools/supabase#sign-in. If you can open web pages, read https://buildladder.com/tools/supabase.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

How to work with me:
- Go through the steps below in order, one at a time.
- Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money.
- When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done.
- The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you.
- Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings.
- After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one.
- Use plain words. I may never have coded before.

## Step 1 of 8: Create or open your Supabase project

This step is mine to do. Walk me through it, one action at a time:
- If you already made a Supabase project for this product, for its database or its sign-in, open it at supabase.com/dashboard and skip the rest of this list.
- Otherwise, open supabase.com/dashboard and sign in or create an account. Choose the option that creates a new project.
- In the form, choose the organization that will hold it, and enter a name, such as your product’s name.
- Set a strong database password and save it in your password manager.
- If it asks for a region, pick the one closest to the people who will use your product.
- If the form offers access through Supabase’s Data API, keep it on.
- Create the project, then wait until its dashboard is ready.

It worked when: You can see your Supabase project’s dashboard, the page where you manage it.

Before we move on, check with me:
- Is your database password saved somewhere safe?

If something goes wrong:
- It says you’ve reached the limit of free projects. The free plan allows 2 active projects. Pause one you don’t use, or use a project you already have.
- Your project is paused. Open it in the dashboard and unpause it.

## Step 2 of 8: Check email sign-in and web addresses

This step is mine to do. Walk me through it, one action at a time:
- In Supabase, open Authentication, then Sign In / Providers, and select Email.
- Check that Email is on. Keep email confirmation on, so people must confirm their address.
- Open Authentication, then URL Configuration. Set Site URL to the address your product opens at on your computer, like http://localhost:3000.
- Under Redirect URLs, add that address followed by /**, like http://localhost:3000/**. This lets Supabase send people to any page in your product.

It worked when: Email shows as on under Sign In / Providers, and your product’s address is saved in URL Configuration.

If something goes wrong:
- You don’t know your product’s address. Ask your AI tool: “What address does my app open at on my computer?”

## Step 3 of 8: Add sign-up and sign-in pages

Read PLAN.md in this folder. It has my plan and the tools I chose.

I want people to sign up, sign in and sign out with Supabase Auth. I have a Supabase project with email sign-in turned on.

Before you start:
- Look at my product and tell me how it’s built, in plain words.
- Check Supabase’s current official docs for this kind of product. Don’t rely on memory.
- Tell me what you’ll install and change, and wait for my yes.

Then:
1. If my app isn’t connected to Supabase yet, add the names it needs for the Supabase project URL and publishable key to .env, with empty values. Make sure Git ignores it. Tell me where to find each value in the Supabase dashboard. I’ll paste them in myself.
2. Read the keys only from environment variables. Use only the publishable key in the app. Never use the secret key in code that runs in a browser or on a phone.
3. Build a sign-up page and a sign-in page with email and password. Show clear messages when something goes wrong, like a wrong password.
4. Add a “Continue with Google” button. It won’t work until I finish Google setup, and that’s fine.
5. Add a way to sign out, and show who is signed in.

Keep everything that already works. When you’re done, explain what changed and give me a short list of things to try.

It worked when: Your product has sign-up and sign-in pages, and your .env file holds the two Supabase values.

Before we move on, check with me:
- Does the sign-up page show the form and the Google button?
- Does your AI tool confirm that Git ignores .env?

If something goes wrong:
- It says the API key is invalid, or it can’t reach Supabase. Copy the values again from the Connect button in your Supabase project. Check for extra spaces, then restart your product.
- You can’t find a publishable key. Open Settings, then API Keys, in your Supabase project. The publishable key starts with sb_publishable_.

## Step 4 of 8: Turn on Google sign-in

This step is mine to do. Walk me through it, one action at a time:
- In Supabase, open Authentication, then Sign In / Providers, and select Google. Copy the Callback URL shown there.
- In a new tab, open console.cloud.google.com. Create a project for your product, or pick one you already have.
- Open Google’s authentication setup for that Cloud project. If it asks, enter your product’s name and a contact email.
- In the OAuth client list, start creating a client. Choose Web application. A phone app needs this Web client too.
- Under Authorized JavaScript origins, add your product’s address, like http://localhost:3000.
- Under Authorized redirect URIs, paste Supabase’s Callback URL exactly. Then click Create.
- When Google shows the client ID and client secret, copy them into your password manager.
- Back in Supabase’s Google settings, turn Google on, enter the client ID and secret, and save.
- When you put your product online, add its live address under Authorized JavaScript origins, remove the localhost address, and switch your Google app to In production.

It worked when: Google shows as on under Sign In / Providers, and the Google button in your product opens Google’s sign-in screen.

If something goes wrong:
- Google shows a redirect_uri_mismatch error. The redirect URI in Google must match Supabase’s Callback URL exactly. Copy it again, with no extra spaces or slashes. Google says changes can take 5 minutes to a few hours.
- Some people can’t sign in with Google. Google’s Testing status limits access to listed test accounts unless the app only asks for name, email and profile. Other test authorizations expire after seven days. In Google’s authentication setup, check the audience and publishing status before you put your product online.
- Google’s screen shows an address ending in supabase.co. That’s normal at first. A custom domain for your Supabase project, or brand verification under Branding in Google, shows your own name instead.

## Step 5 of 8: Phone app only: make sign-in links open your app

This step is mine to do. Walk me through it, one action at a time:
- Ask your AI tool: “What URL scheme does my app have in app.json? If there isn’t one, add one, like myapp.”
- In Authentication, then URL Configuration, add your app’s scheme followed by ://** to Redirect URLs, such as myapp://**. Save the change.
- Ask your AI tool to make a development build, so you can test these links on your phone.
- Keep email confirmation on. If a link doesn’t open the app, confirm your email in the browser, then open the app and sign in.
- For native Google sign-in, create an OAuth client in Google Cloud for each phone platform you support. Your AI tool can find the identifiers those forms need.
- In Supabase’s Google settings, add the client IDs separated by commas: the Web ID first, then one for each phone platform. Save the change.
- Tell your AI tool: “This is an Expo app. Follow Supabase’s current Expo docs for deep links and for native Google sign-in. Save the session on the phone the way those docs do.”

It worked when: Redirect URLs lists your app’s scheme, like myapp://**, and Supabase’s Google settings list a client ID for the Web and for each phone platform.

If something goes wrong:
- Google sign-in does nothing in Expo Go. Native Google sign-in needs a development build. Expo’s guide says the Google sign-in library can’t run in Expo Go.
- You don’t know your SHA-1 fingerprint. Ask your AI tool: “Show me the SHA-1 fingerprint for my Android build, for testing and for the Play Store.” Supabase says to add both to Google.

## Step 6 of 8: Make a page for signed-in people only

Read PLAN.md again. I want one page that only signed-in people can see. If you don’t know which page, ask me first.

Check Supabase’s current docs for protecting pages in this kind of product. Then:
- If someone who isn’t signed in opens that page, send them to the sign-in page.
- After they sign in, take them back to the page they wanted.
- Hiding a link isn’t enough. The page itself must check who is signed in, the way Supabase recommends.

Keep everything that already works. Tell me what you changed, and how to test it while signed in and signed out.

It worked when: The page opens when you’re signed in, and sends you to sign in when you’re not.

If something goes wrong:
- The page opens even when you’re signed out. Say: “I’m signed out and the protected page still opens. Please find out why and fix it.”

## Step 7 of 8: Test sign-up, sign-out and Google

This step is mine to do. Walk me through it, one action at a time:
- Sign up with the email you use for Supabase. Supabase’s built-in email only sends to your Supabase team, and only 2 emails an hour.
- Open the confirmation email and click the link. You should land back in your product.
- Sign out. Then open your page for signed-in people. It should send you to sign in.
- Sign in with your email and password. That page should open.
- Sign out again. Click Continue with Google and pick your Google account.
- In Supabase, open Authentication, then Users. Check that your test sign-ups are listed.
- When you put your product online, add its live address in URL Configuration.

It worked when: Email sign-up, sign-out, sign-in and Google sign-in all work, and your test accounts appear in Supabase.

If something goes wrong:
- The confirmation email never arrives. Check your spam folder. If it isn’t there, wait an hour and try again.
- It says “Email address not authorized”. That address isn’t on your Supabase team. Test with your own address, or do “Send real emails with your own email service”.
- The email link opens a page that doesn’t load. Check Supabase’s Site URL and allowed redirect addresses against the address your product actually opens at. If you changed ports or domains, update those settings.

## Step 8 of 8: Send real emails with your own email service

This step is mine to do. Walk me through it, one action at a time:
- Pick an email service, like Resend, Amazon SES or SendGrid, and verify your domain there. Its Tool page has the steps.
- In that service, find its SMTP details: host, port, username and password.
- For Resend, the host is smtp.resend.com, the port is 465, the username is resend, and the password is a Resend API key.
- In Supabase’s authentication settings, open SMTP Settings and turn on custom SMTP.
- For the sender, enter an address on your verified domain that people can reply to, like hello@yourname.com, and your product’s name.
- Enter the host, port, username and password from your email service, then save.
- Supabase then allows 30 emails an hour at first. To send more, raise it under Authentication, then Rate Limits.
- Sign up with an address that isn’t on your Supabase team.

It worked when: An address outside your Supabase team gets the confirmation email, sent from your domain with your sender name.

If something goes wrong:
- It still says “Email address not authorized”. Custom SMTP isn’t saved yet. Open SMTP Settings again, check every field, and click Save.
- The emails land in spam. Finish verifying your domain in your email service. It gives you DNS records to add where you bought the domain.
- Sending fails after you saved. Check the host, port, username and password against your email service’s SMTP page. Make a new password or API key there if you’re not sure.

The steps

  1. Supabase, ready for sign-in

    Create or open your Supabase project

    You

    A Supabase project holds your database and your user accounts. Use one project for both, so your accounts and data stay together.

    1. If you already made a Supabase project for this product, for its database or its sign-in, open it at supabase.com/dashboard and skip the rest of this list.
    2. Otherwise, open supabase.com/dashboard and sign in or create an account. Choose the option that creates a new project.
    3. In the form, choose the organization that will hold it, and enter a name, such as your product’s name.
    4. Set a strong database password and save it in your password manager.
    5. If it asks for a region, pick the one closest to the people who will use your product.
    6. If the form offers access through Supabase’s Data API, keep it on.
    7. Create the project, then wait until its dashboard is ready.

    It worked when: You can see your Supabase project’s dashboard, the page where you manage it.

    Check this step
    • Is your database password saved somewhere safe?
    It says you’ve reached the limit of free projects.

    The free plan allows 2 active projects. Pause one you don’t use, or use a project you already have.

    Your project is paused.

    Open it in the dashboard and unpause it.

  2. Check email sign-in and web addresses

    You

    Email sign-in is on by default in Supabase. You check it, and tell Supabase which web addresses people may return to after they sign in.

    1. In Supabase, open Authentication, then Sign In / Providers, and select Email.
    2. Check that Email is on. Keep email confirmation on, so people must confirm their address.
    3. Open Authentication, then URL Configuration. Set Site URL to the address your product opens at on your computer, like http://localhost:3000.
    4. Under Redirect URLs, add that address followed by /**, like http://localhost:3000/**. This lets Supabase send people to any page in your product.

    It worked when: Email shows as on under Sign In / Providers, and your product’s address is saved in URL Configuration.

    You don’t know your product’s address.

    Ask your AI tool: “What address does my app open at on my computer?”

  3. Working sign-in pages

    Add sign-up and sign-in pages

    AI tool

    Your AI tool connects your product to Supabase and builds the pages for signing up, signing in and signing out. You paste the keys in yourself.

    It worked when: Your product has sign-up and sign-in pages, and your .env file holds the two Supabase values.

    Check this step
    • Does the sign-up page show the form and the Google button?
    • Does your AI tool confirm that Git ignores .env?
    It says the API key is invalid, or it can’t reach Supabase.

    Copy the values again from the Connect button in your Supabase project. Check for extra spaces, then restart your product.

    You can’t find a publishable key.

    Open Settings, then API Keys, in your Supabase project. The publishable key starts with sb_publishable_.

  4. Turn on Google sign-in

    You

    Google needs to know your product before the Google button works. You make a client ID and a client secret in Google Cloud, then paste them into Supabase.

    1. In Supabase, open Authentication, then Sign In / Providers, and select Google. Copy the Callback URL shown there.
    2. In a new tab, open console.cloud.google.com. Create a project for your product, or pick one you already have.
    3. Open Google’s authentication setup for that Cloud project. If it asks, enter your product’s name and a contact email.
    4. In the OAuth client list, start creating a client. Choose Web application. A phone app needs this Web client too.
    5. Under Authorized JavaScript origins, add your product’s address, like http://localhost:3000.
    6. Under Authorized redirect URIs, paste Supabase’s Callback URL exactly. Then click Create.
    7. When Google shows the client ID and client secret, copy them into your password manager.
    8. Back in Supabase’s Google settings, turn Google on, enter the client ID and secret, and save.
    9. When you put your product online, add its live address under Authorized JavaScript origins, remove the localhost address, and switch your Google app to In production.

    It worked when: Google shows as on under Sign In / Providers, and the Google button in your product opens Google’s sign-in screen.

    Google shows a redirect_uri_mismatch error.

    The redirect URI in Google must match Supabase’s Callback URL exactly. Copy it again, with no extra spaces or slashes. Google says changes can take 5 minutes to a few hours.

    Some people can’t sign in with Google.

    Google’s Testing status limits access to listed test accounts unless the app only asks for name, email and profile. Other test authorizations expire after seven days. In Google’s authentication setup, check the audience and publishing status before you put your product online.

    Google’s screen shows an address ending in supabase.co.

    That’s normal at first. A custom domain for your Supabase project, or brand verification under Branding in Google, shows your own name instead.

  5. Phone app only: make sign-in links open your app

    You

    A phone app needs its own link that opens the app after sign-in or email confirmation. A web address alone may send people to a browser instead.

    1. Ask your AI tool: “What URL scheme does my app have in app.json? If there isn’t one, add one, like myapp.”
    2. In Authentication, then URL Configuration, add your app’s scheme followed by ://** to Redirect URLs, such as myapp://**. Save the change.
    3. Ask your AI tool to make a development build, so you can test these links on your phone.
    4. Keep email confirmation on. If a link doesn’t open the app, confirm your email in the browser, then open the app and sign in.
    5. For native Google sign-in, create an OAuth client in Google Cloud for each phone platform you support. Your AI tool can find the identifiers those forms need.
    6. In Supabase’s Google settings, add the client IDs separated by commas: the Web ID first, then one for each phone platform. Save the change.
    7. Tell your AI tool: “This is an Expo app. Follow Supabase’s current Expo docs for deep links and for native Google sign-in. Save the session on the phone the way those docs do.”

    It worked when: Redirect URLs lists your app’s scheme, like myapp://**, and Supabase’s Google settings list a client ID for the Web and for each phone platform.

    Google sign-in does nothing in Expo Go.

    Native Google sign-in needs a development build. Expo’s guide says the Google sign-in library can’t run in Expo Go.

    You don’t know your SHA-1 fingerprint.

    Ask your AI tool: “Show me the SHA-1 fingerprint for my Android build, for testing and for the Play Store.” Supabase says to add both to Google.

  6. Tested and ready for real people

    Make a page for signed-in people only

    AI tool

    Pick one page that only signed-in people should see, like a dashboard. Visitors who aren’t signed in get sent to the sign-in page instead.

    It worked when: The page opens when you’re signed in, and sends you to sign in when you’re not.

    The page opens even when you’re signed out.

    Say: “I’m signed out and the protected page still opens. Please find out why and fix it.”

  7. Test sign-up, sign-out and Google

    You

    Use your product the way a new person would. Try every way in and out, and check that Supabase saved the accounts.

    1. Sign up with the email you use for Supabase. Supabase’s built-in email only sends to your Supabase team, and only 2 emails an hour.
    2. Open the confirmation email and click the link. You should land back in your product.
    3. Sign out. Then open your page for signed-in people. It should send you to sign in.
    4. Sign in with your email and password. That page should open.
    5. Sign out again. Click Continue with Google and pick your Google account.
    6. In Supabase, open Authentication, then Users. Check that your test sign-ups are listed.
    7. When you put your product online, add its live address in URL Configuration.

    It worked when: Email sign-up, sign-out, sign-in and Google sign-in all work, and your test accounts appear in Supabase.

    The confirmation email never arrives.

    Check your spam folder. If it isn’t there, wait an hour and try again.

    It says “Email address not authorized”.

    That address isn’t on your Supabase team. Test with your own address, or do “Send real emails with your own email service”.

    The email link opens a page that doesn’t load.

    Check Supabase’s Site URL and allowed redirect addresses against the address your product actually opens at. If you changed ports or domains, update those settings.

  8. Send real emails with your own email service

    You

    Supabase says its built-in email isn’t for real use. Before real people sign up, you connect your own email service through custom SMTP. The Email concept compares the services.

    1. Pick an email service, like Resend, Amazon SES or SendGrid, and verify your domain there. Its Tool page has the steps.
    2. In that service, find its SMTP details: host, port, username and password.
    3. For Resend, the host is smtp.resend.com, the port is 465, the username is resend, and the password is a Resend API key.
    4. In Supabase’s authentication settings, open SMTP Settings and turn on custom SMTP.
    5. For the sender, enter an address on your verified domain that people can reply to, like hello@yourname.com, and your product’s name.
    6. Enter the host, port, username and password from your email service, then save.
    7. Supabase then allows 30 emails an hour at first. To send more, raise it under Authentication, then Rate Limits.
    8. Sign up with an address that isn’t on your Supabase team.

    It worked when: An address outside your Supabase team gets the confirmation email, sent from your domain with your sender name.

    It still says “Email address not authorized”.

    Custom SMTP isn’t saved yet. Open SMTP Settings again, check every field, and click Save.

    The emails land in spam.

    Finish verifying your domain in your email service. It gives you DNS records to add where you bought the domain.

    Sending fails after you saved.

    Check the host, port, username and password against your email service’s SMTP page. Make a new password or API key there if you’re not sure.

Compare Supabase with the other options

Stuck? Try these, in order
  1. Stop asking it to “fix it”. Say exactly what’s wrong.

    Paste this into the same chat. It asks your AI tool to find the problem with you.

    Troubleshooting prompt
    I’m following “Supabase” on BuildLadder and something isn’t working.
    This comes from https://buildladder.com/tools/supabase. If you can open web pages, read https://buildladder.com/tools/supabase.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.
    
    Ask me which step I’m on, what I tried and what happened, one question at a time. Look at the files in this folder if you can. Then explain the problem in plain words and suggest the smallest fix. Don’t change anything that already works.

  2. Check the service isn’t down.

    If you use one of these, open its status page before changing any code: Supabase, Vercel, Netlify, Cloudflare, Stripe, Clerk, Firebase, Resend, GitHub, Expo, Claude, OpenAI.

  3. Go back to your last saved version.
    Troubleshooting prompt
    Take my product back to the last saved version that worked. First show me which version that is and what will change. Don’t delete anything else.

  4. Make the change smaller.
    Troubleshooting prompt
    Let’s make a smaller change. Undo what you just tried. Then do only the first part of it, and tell me how to check that part works before we go on.

  5. Ask a person.

    Copy this, fill in each line, and post it in a community like r/vibecoding. Take out any keys or passwords first.

    Problem report
    What I'm building: (one sentence)
    What I asked my AI tool to do: (the last request)
    What I expected: (what should happen)
    What happened instead: (what you see)
    The exact error, if any: (copy it here)
    What I've tried: (each attempt, in order)
    My tools: (AI tool, website or app, hosting)

Look things up

Questions people ask

Words used on this page

Database
A database is an organized place where an app stores information so it's still there later. It keeps things like accounts, posts, and orders, and finds them quickly.
Authentication
Authentication is how an app checks who you are, usually when you sign in. Common ways are a password, a code sent to your email, or a "Sign in with Google" button.
Row-level security
Row-level security is a set of rules inside a database that decides who can see or change each row. With it, people only reach the rows they’re allowed to.
Environment variable
An environment variable is a named setting stored outside your code, such as an API key or a database address. Your app reads it when it runs, so secrets stay out of your shared files.
API key
An API key is a long code that tells a service your app is allowed to use it. Many keys are secret, so treat them like passwords and keep them out of shared code.
Redirect URL
A redirect URL is the web address a service sends someone back to after a step, like signing in with Google. Services only send people to addresses you’ve approved.
Localhost
Localhost is the name your computer uses for itself. When your site runs at an address like http://localhost:3000, it's a private preview that only you can see.
OAuth
OAuth is the standard behind buttons like “Continue with Google”. Google checks who you are, then tells the app, so the app never sees your Google password.
Expo
Expo is a framework for building iPhone and Android apps from one set of code. You write it in JavaScript with React Native, a phone version of React, and test it on your own phone.
Development build
A development build is a copy of your phone app that you install on your phone instead of opening it in Expo Go. It can include native features, ones built for iPhone or Android itself, like a Google sign-in button.
Expo Go
Expo Go is Expo’s free test app for iPhone and Android. It opens the app you are building on your own phone, with no Apple or Google fee. It runs only the features built into it.
Session
A session is how an app remembers that you signed in, so you don’t sign in again on every page. Your browser or phone keeps a small signed note that proves it’s you.
Backend
The backend is the behind-the-scenes part of an app that visitors never see. It runs on a server, where it saves data and checks who is signed in.
Production
Production is the live version of your website or app that real people use. Changes there affect everyone, so you test them in a preview first.
SMTP
SMTP is the standard way computers hand email to each other. Many sending services give you an SMTP address, a user name and a password, so almost any app can send through them.
Sending domain
A sending domain is the domain your app’s emails come from, like updates.yourname.com. You prove it’s yours with a few DNS settings, so inboxes trust your emails more.
Rate limit
A rate limit is the most requests a service lets you make in a set time, like a minute or a day. Go over it and the service turns requests away for a while, often with a 429 error.

Official pages

What’s new

  • 2 Nov 2026: Supabase's command tool now works on your local copy first. Source
  • 27 Oct 2026: Supabase Compute runs AI agents and long jobs next to your data. Source
  • 14 Oct 2026: Each AI tool can get its own Supabase copy on your computer. Source

Updated · Supabase